Module: Trax::Controller::ActionTypes
- Extended by:
- ActiveSupport::Concern
- Included in:
- Trax::Controller
- Defined in:
- lib/trax/controller/action_types.rb
Instance Method Summary collapse
Instance Method Details
#collection_action? ⇒ Boolean
10 11 12 |
# File 'lib/trax/controller/action_types.rb', line 10 def collection_action? !!get_collection_ivar end |
#current_action ⇒ Object
6 7 8 |
# File 'lib/trax/controller/action_types.rb', line 6 def current_action :"#{request.params["action"]}" end |
#resource_action? ⇒ Boolean
14 15 16 |
# File 'lib/trax/controller/action_types.rb', line 14 def resource_action? !!get_resource_ivar end |