Module: ActiveInteraction::Extras::RunCallback

Extended by:
ActiveSupport::Concern
Included in:
All
Defined in:
lib/active_interaction/extras/run_callback.rb

Instance Method Summary collapse

Instance Method Details

#after_run_callback_enabled?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/active_interaction/extras/run_callback.rb', line 14

def after_run_callback_enabled?
  !@after_run_callback_disabled
end

#disable_after_run_callbackObject

This is useful for testing



23
24
25
# File 'lib/active_interaction/extras/run_callback.rb', line 23

def disable_after_run_callback
  @after_run_callback_disabled = true
end

#enable_after_run_callbackObject



18
19
20
# File 'lib/active_interaction/extras/run_callback.rb', line 18

def enable_after_run_callback
  @after_run_callback_disabled = false
end

#runObject



8
9
10
11
12
# File 'lib/active_interaction/extras/run_callback.rb', line 8

def run
  run_callbacks(:run) do
    super
  end
end