FEATURE: staff action logs when creating/updating/deleting badges

This commit is contained in:
Régis Hanol
2018-05-17 18:09:27 +02:00
parent 7ab7696c94
commit 53f8f6095d
6 changed files with 291 additions and 171 deletions
+8 -2
View File
@@ -72,7 +72,10 @@ class UserHistory < ActiveRecord::Base
post_edit: 53,
topic_published: 54,
recover_topic: 55,
post_approved: 56
post_approved: 56,
create_badge: 57,
change_badge: 58,
delete_badge: 59,
)
end
@@ -123,7 +126,10 @@ class UserHistory < ActiveRecord::Base
:post_edit,
:topic_published,
:recover_topic,
:post_approved
:post_approved,
:create_badge,
:change_badge,
:delete_badge,
]
end