Module: RESTFramework::ReadOnlyModelControllerMixin

Includes:
BaseModelControllerMixin, ListModelMixin, ShowModelMixin
Defined in:
lib/rest_framework/controller_mixins/models.rb

Overview

Mixin that includes show/list mixins.

Class Method Summary collapse

Methods included from ShowModelMixin

#_show, #show

Methods included from ListModelMixin

#_index, #index

Methods included from BaseModelControllerMixin

#_get_specific_action_config, #get_allowed_parameters, #get_body_params, #get_fields, #get_filter_backends, #get_filterset_fields, #get_find_by_fields, #get_model, #get_ordering_fields, #get_record, #get_recordset, #get_search_fields, #get_serializer_class

Methods included from BaseControllerMixin

#api_response, #get_filter_backends, #get_filtered_data, #get_serializer_class, #record_invalid, #record_not_destroyed, #record_not_found, #record_not_saved, #root

Class Method Details

.included(base) ⇒ Object



285
286
287
288
289
# File 'lib/rest_framework/controller_mixins/models.rb', line 285

def self.included(base)
  if base.is_a?(Class)
    RESTFramework::BaseModelControllerMixin.included(base)
  end
end