721014c927
This reverts commit 3e99123095
.
10 lines
150 B
Ruby
10 lines
150 B
Ruby
class SpamLog < ActiveRecord::Base
|
|
belongs_to :user
|
|
|
|
validates :user, presence: true
|
|
|
|
def remove_user
|
|
user.block
|
|
user.destroy
|
|
end
|
|
end
|