docs: add documentation for various classes in app/logical.

This commit is contained in:
evazion
2021-06-23 05:09:55 -05:00
parent e5cfb7904c
commit ed302fdf4d
33 changed files with 518 additions and 25 deletions

View File

@@ -1,6 +1,8 @@
# Rejects bulk update requests that haven't been approved in 60 days.
module BulkUpdateRequestPruner
module_function
# Posts a warning when a bulk update request is pending automatic rejection in 5 days.
def warn_old
BulkUpdateRequest.old.pending.find_each do |bulk_update_request|
if bulk_update_request.forum_topic
@@ -12,6 +14,7 @@ module BulkUpdateRequestPruner
end
end
# Rejects bulk update requests that haven't been approved in 60 days.
def reject_expired
BulkUpdateRequest.expired.pending.find_each do |bulk_update_request|
ApplicationRecord.transaction do