Add records that indicate a user's avatar has been checked

This commit is contained in:
Robin Ward
2013-09-12 14:58:20 -04:00
parent 4599e5d732
commit 3fcd331d43
3 changed files with 17 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ class UserHistory < ActiveRecord::Base
belongs_to :acting_user, class_name: 'User'
belongs_to :target_user, class_name: 'User'
validates_presence_of :acting_user_id
validates_presence_of :action
scope :only_staff_actions, ->{ where("action IN (?)", UserHistory.staff_action_ids) }
@@ -15,7 +14,9 @@ class UserHistory < ActiveRecord::Base
:change_trust_level,
:change_site_setting,
:change_site_customization,
:delete_site_customization)
:delete_site_customization,
:checked_for_custom_avatar,
:notified_about_avatar)
end
# Staff actions is a subset of all actions, used to audit actions taken by staff users.