Adds moderate actions to proposal system notifications
This commit is contained in:
@@ -55,4 +55,9 @@ class ProposalNotification < ActiveRecord::Base
|
||||
self.update(author_id: self.proposal.author_id) if self.proposal
|
||||
end
|
||||
|
||||
def moderate_system_email(moderator)
|
||||
Notification.where(notifiable_type: 'ProposalNotification', notifiable: self).destroy_all
|
||||
Activity.log(moderator, :hide, self)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user