Module: RESTFramework::ShowModelMixin
- Included in:
- ModelControllerMixin, ReadOnlyModelControllerMixin
- Defined in:
- lib/rest_framework/controller_mixins/models.rb
Overview
Mixin for showing records.
Instance Method Summary collapse
Instance Method Details
#_show ⇒ Object
231 232 233 234 |
# File 'lib/rest_framework/controller_mixins/models.rb', line 231 def _show @record = self.get_record return self.get_serializer_class.new(@record, controller: self).serialize end |
#show ⇒ Object
227 228 229 |
# File 'lib/rest_framework/controller_mixins/models.rb', line 227 def show api_response(self._show) end |