mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
10 lines
266 B
Ruby
10 lines
266 B
Ruby
class ApplyAllRulesJob < ApplicationJob
|
|
queue_as :medium_priority
|
|
|
|
def perform(family, execution_type: "manual")
|
|
family.rules.find_each do |rule|
|
|
RuleJob.perform_now(rule, ignore_attribute_locks: true, execution_type: execution_type)
|
|
end
|
|
end
|
|
end
|