Module: AcceptableApi::Controller
- Defined in:
- lib/acceptable_api/controller.rb
Instance Method Summary collapse
Instance Method Details
#initialize(params, action) ⇒ Object
9 10 11 12 |
# File 'lib/acceptable_api/controller.rb', line 9 def initialize params, action self.params = params self.action = action end |
#perform_action ⇒ Object
14 15 16 |
# File 'lib/acceptable_api/controller.rb', line 14 def perform_action send action end |