debian-mirror-gitlab/app/models/spam_log.rb
2016-09-13 17:45:13 +05:30

14 lines
204 B
Ruby

class SpamLog < ActiveRecord::Base
belongs_to :user
validates :user, presence: true
def remove_user
user.block
user.destroy
end
def text
[title, description].join("\n")
end
end