module RESTFramework::ShowModelMixin

Mixin for showing records.

Public Instance Methods

show() click to toggle source
# File lib/rest_framework/controller_mixins/models.rb, line 230
def show
  @record = self.get_record
  serialized_record = self.get_serializer_class.new(object: @record, controller: self).serialize
  return api_response(serialized_record)
end