Module: ActiveInteraction::Extras::RunCallback
- Extended by:
- ActiveSupport::Concern
- Included in:
- All
- Defined in:
- lib/active_interaction/extras/run_callback.rb
Instance Method Summary collapse
- #after_run_callback_enabled? ⇒ Boolean
-
#disable_after_run_callback ⇒ Object
This is useful for testing.
- #enable_after_run_callback ⇒ Object
- #run ⇒ Object
Instance Method Details
#after_run_callback_enabled? ⇒ 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_callback ⇒ Object
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_callback ⇒ Object
18 19 20 |
# File 'lib/active_interaction/extras/run_callback.rb', line 18 def enable_after_run_callback @after_run_callback_disabled = false end |
#run ⇒ Object
8 9 10 11 12 |
# File 'lib/active_interaction/extras/run_callback.rb', line 8 def run run_callbacks(:run) do super end end |