Fixed typo in forum post mod action
This commit is contained in:
@@ -20,10 +20,10 @@ class ForumPost < ActiveRecord::Base
|
|||||||
before_destroy :validate_topic_is_unlocked
|
before_destroy :validate_topic_is_unlocked
|
||||||
after_save :delete_topic_if_original_post
|
after_save :delete_topic_if_original_post
|
||||||
after_update(:if => lambda {|rec| rec.updater_id != rec.creator_id}) do |rec|
|
after_update(:if => lambda {|rec| rec.updater_id != rec.creator_id}) do |rec|
|
||||||
ModAction.log("#{CurrentUser.name} updated forum post ##{rec.id}")
|
ModAction.log("#{CurrentUser.name} updated forum ##{rec.id}")
|
||||||
end
|
end
|
||||||
after_destroy(:if => lambda {|rec| rec.updater_id != rec.creator_id}) do |rec|
|
after_destroy(:if => lambda {|rec| rec.updater_id != rec.creator_id}) do |rec|
|
||||||
ModAction.log("#{CurrentUser.name} deleted forum post ##{rec.id}")
|
ModAction.log("#{CurrentUser.name} deleted forum ##{rec.id}")
|
||||||
end
|
end
|
||||||
mentionable(
|
mentionable(
|
||||||
:message_field => :body,
|
:message_field => :body,
|
||||||
|
|||||||
Reference in New Issue
Block a user