Module: ActiveAction::ActionController::HelperMethods
- Defined in:
- lib/active_action/action_controller.rb
Instance Method Summary collapse
-
#active_actions_for(*scopes) ⇒ Object
Finds collection_actions for the specified ‘scopes`.
Instance Method Details
#active_actions_for(*scopes) ⇒ Object
Finds collection_actions for the specified ‘scopes`
52 53 54 55 56 57 |
# File 'lib/active_action/action_controller.rb', line 52 def active_actions_for(*scopes) scopes = Array.wrap(scopes.presence || :all) active_actions.select do |ca| (scopes & ca.scopes).any? end end |