BigW Consortium Gitlab

spam_log.rb 150 Bytes
Newer Older
1 2 3 4
class SpamLog < ActiveRecord::Base
  belongs_to :user

  validates :user, presence: true
5 6 7 8 9

  def remove_user
    user.block
    user.destroy
  end
10
end