Module: RESTFramework::ListModelMixin

Included in:
ModelControllerMixin, ReadOnlyModelControllerMixin
Defined in:
lib/rest_framework/controllers/models.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

TODO: pagination classes like Django



151
152
153
154
# File 'lib/rest_framework/controllers/models.rb', line 151

def index
  @records = self.get_filtered_recordset
  api_response(@records)
end