2016-04-02 18:10:28 +05:30
|
|
|
class SpamLog < ActiveRecord::Base
|
|
|
|
belongs_to :user
|
|
|
|
|
|
|
|
validates :user, presence: true
|
|
|
|
|
|
|
|
def remove_user
|
|
|
|
user.block
|
|
|
|
user.destroy
|
|
|
|
end
|
2016-09-13 17:45:13 +05:30
|
|
|
|
|
|
|
def text
|
|
|
|
[title, description].join("\n")
|
|
|
|
end
|
2016-04-02 18:10:28 +05:30
|
|
|
end
|