Class: Stepped::ActionJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Stepped::ActionJob
- Defined in:
- app/jobs/stepped/action_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(actor, name, *arguments, parent_step: nil) ⇒ Object
4 5 6 7 8 9 |
# File 'app/jobs/stepped/action_job.rb', line 4 def perform(actor, name, *arguments, parent_step: nil) root = parent_step.nil? action = Stepped::Action.new(actor:, name:, arguments:, root:) action.parent_steps << parent_step if parent_step.present? action.obtain_lock_and_perform end |