Module: Iord::Controller::ClassMethods
- Defined in:
- lib/iord/controller.rb
Instance Method Summary collapse
- #resource_actions(*actions) ⇒ Object (also: #resource_action)
- #resource_actions!(*actions) ⇒ Object
Instance Method Details
#resource_actions(*actions) ⇒ Object Also known as: resource_action
43 44 45 46 |
# File 'lib/iord/controller.rb', line 43 def resource_actions(*actions) actions = *actions if actions.size == 1 and actions[0].is_a? Array self.resource_based_actions = self.resource_based_actions + actions end |
#resource_actions!(*actions) ⇒ Object
49 50 51 52 |
# File 'lib/iord/controller.rb', line 49 def resource_actions!(*actions) actions = *actions if actions.size == 1 and actions[0].is_a? Array self.resource_based_actions = actions end |