Keep track of who rejects alias/impl/bur
Since anyone builder+ can now reject these I don't think it should always be attributed to albert.
This commit is contained in:
@@ -121,21 +121,17 @@ class BulkUpdateRequest < ActiveRecord::Base
|
||||
|
||||
def update_forum_topic_for_approve
|
||||
if forum_topic
|
||||
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
|
||||
forum_topic.posts.create(
|
||||
:body => "The bulk update request ##{id} has been approved."
|
||||
)
|
||||
end
|
||||
forum_topic.posts.create(
|
||||
:body => "The bulk update request ##{id} has been approved."
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def update_forum_topic_for_reject
|
||||
if forum_topic
|
||||
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
|
||||
forum_topic.posts.create(
|
||||
:body => "The bulk update request ##{id} has been rejected."
|
||||
)
|
||||
end
|
||||
forum_topic.posts.create(
|
||||
:body => "The bulk update request ##{id} has been rejected."
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -235,21 +235,17 @@ class TagAlias < ActiveRecord::Base
|
||||
|
||||
def update_forum_topic_for_approve
|
||||
if forum_topic
|
||||
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag alias #{antecedent_name} -> #{consequent_name} has been approved."
|
||||
)
|
||||
end
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag alias #{antecedent_name} -> #{consequent_name} has been approved."
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def update_forum_topic_for_reject
|
||||
if forum_topic
|
||||
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag alias #{antecedent_name} -> #{consequent_name} has been rejected."
|
||||
)
|
||||
end
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag alias #{antecedent_name} -> #{consequent_name} has been rejected."
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -218,21 +218,17 @@ class TagImplication < ActiveRecord::Base
|
||||
|
||||
def update_forum_topic_for_approve
|
||||
if forum_topic
|
||||
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag implication #{antecedent_name} -> #{consequent_name} has been approved."
|
||||
)
|
||||
end
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag implication #{antecedent_name} -> #{consequent_name} has been approved."
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def update_forum_topic_for_reject
|
||||
if forum_topic
|
||||
CurrentUser.scoped(User.admins.first, "127.0.0.1") do
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag implication #{antecedent_name} -> #{consequent_name} has been rejected."
|
||||
)
|
||||
end
|
||||
forum_topic.posts.create(
|
||||
:body => "The tag implication #{antecedent_name} -> #{consequent_name} has been rejected."
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user