debian-mirror-gitlab/app/models/spam_log.rb
2016-04-02 18:10:28 +05:30

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