tag change request pruner: fixup for e3ae87cff.
This commit is contained in:
@@ -29,7 +29,7 @@ class TagChangeRequestPruner
|
|||||||
|
|
||||||
def reject_expired(model)
|
def reject_expired(model)
|
||||||
model.expired.pending.find_each do |tag_change|
|
model.expired.pending.find_each do |tag_change|
|
||||||
transaction do
|
ApplicationRecord.transaction do
|
||||||
if tag_change.forum_topic
|
if tag_change.forum_topic
|
||||||
name = model.model_name.human.downcase
|
name = model.model_name.human.downcase
|
||||||
body = "This #{name} has been rejected because it was not approved within 60 days."
|
body = "This #{name} has been rejected because it was not approved within 60 days."
|
||||||
|
|||||||
Reference in New Issue
Block a user