Module: Rad::Controller::Abstract
- Defined in:
- lib/rad/controller/_require.rb,
lib/rad/controller/_abstract.rb
Defined Under Namespace
Modules: ClassMethods, Miscellaneous, Render Classes: Responder
Instance Attribute Summary collapse
-
#action_name ⇒ Object
Returns the value of attribute action_name.
- #params ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#action_name ⇒ Object
Returns the value of attribute action_name.
8 9 10 |
# File 'lib/rad/controller/_abstract.rb', line 8 def action_name @action_name end |
Instance Method Details
#call(action, *args) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/rad/controller/_abstract.rb', line 14 def call action, *args action.must_be.a Symbol catch :halt do run_callbacks :action, method: action do send action, *args render action: action end end end |