Files
sure/app/jobs/apply_all_rules_job.rb
2026-01-08 15:20:14 +01:00

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