Module: Jun::ActionController::Callbacks::ClassMethods
- Defined in:
- lib/jun/action_controller/callbacks.rb
Instance Method Summary collapse
Instance Method Details
#before_action(method_name, options = {}) ⇒ Object
19 20 21 |
# File 'lib/jun/action_controller/callbacks.rb', line 19 def before_action(method_name, = {}) before_actions << Callback.new(method_name, ) end |
#before_actions ⇒ Object
23 24 25 |
# File 'lib/jun/action_controller/callbacks.rb', line 23 def before_actions @before_actions ||= [] end |