Module: Phaedra::CallbacksActionable::ClassMethods
- Defined in:
- lib/phaedra/concerns/callbacks_actionable.rb
Instance Method Summary collapse
- #after_action(*args, &block) ⇒ Object
- #around_action(*args, &block) ⇒ Object
- #before_action(*args, &block) ⇒ Object
Instance Method Details
#after_action(*args, &block) ⇒ Object
17 18 19 |
# File 'lib/phaedra/concerns/callbacks_actionable.rb', line 17 def after_action(*args, &block) set_callback :action, :after, *args, &block end |
#around_action(*args, &block) ⇒ Object
20 21 22 |
# File 'lib/phaedra/concerns/callbacks_actionable.rb', line 20 def around_action(*args, &block) set_callback :action, :around, *args, &block end |
#before_action(*args, &block) ⇒ Object
14 15 16 |
# File 'lib/phaedra/concerns/callbacks_actionable.rb', line 14 def before_action(*args, &block) set_callback :action, :before, *args, &block end |