gitlab-org--gitlab-foss/app/models/spam_log.rb
2016-06-03 11:10:17 +02:00

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