tag change request pruner: fixup for e3ae87cff.

This commit is contained in:
evazion
2019-09-17 02:43:53 -05:00
parent c2a76840c9
commit 0bb25e094a

View File

@@ -29,7 +29,7 @@ class TagChangeRequestPruner
def reject_expired(model)
model.expired.pending.find_each do |tag_change|
transaction do
ApplicationRecord.transaction do
if tag_change.forum_topic
name = model.model_name.human.downcase
body = "This #{name} has been rejected because it was not approved within 60 days."