Class: Magi::Responder
- Inherits:
-
ActionController::Responder
- Object
- ActionController::Responder
- Magi::Responder
- Defined in:
- lib/magi/responder.rb
Instance Method Summary collapse
-
#initialize(controller, resources, *args) ⇒ Responder
constructor
A new instance of Responder.
Constructor Details
#initialize(controller, resources, *args) ⇒ Responder
Returns a new instance of Responder.
5 6 7 8 9 10 |
# File 'lib/magi/responder.rb', line 5 def initialize(controller, resources, *args) if resources[0].respond_to?(:page) resources[0] = resources[0].page(controller.params[:page]) end super end |