Class: ActiveRecordApi::Rest::IndexController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ActiveRecordApi::Rest::IndexController
- Includes:
- GracefulErrors, CanCan::ControllerAdditions
- Defined in:
- lib/active_record_api/rest/index_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
13 14 15 16 17 |
# File 'lib/active_record_api/rest/index_controller.rb', line 13 def index response.headers['x-total'] = @total response.headers['x-link-next'] = next_link render json: models, each_serializer: serializer end |