mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
11 lines
150 B
Ruby
11 lines
150 B
Ruby
class SpamLog < ActiveRecord::Base
|
|
belongs_to :user
|
|
|
|
validates :user, presence: true
|
|
|
|
def remove_user
|
|
user.block
|
|
user.destroy
|
|
end
|
|
end
|