app/controllers/signature_types_controller.rb
# Call jsonapi_scope directly here so we can get behavior like
# sparse fieldsets and statistics.
Call jsonapi_scope directly here so we can get behavior like
sparse fieldsets and statistics.
Call jsonapi_scope directly here so we can get behavior like sparse fieldsets and statistics .
def show
    scope = jsonapi_scope(SignatureType.where(id: params[:id]))
    instance = scope.resolve.first
    raise JsonapiCompliable::Errors::RecordNotFound unless instance
    render_jsonapi(instance, scope: false)
  end
def show scope = jsonapi_scope ( SignatureType . where ( id : params [ :id ] ) ) instance = scope . resolve . first raise JsonapiCompliable :: Errors :: RecordNotFound unless instance render_jsonapi ( instance , scope : false ) end
Call jsonapi_scope directly here so we can get behavior like
sparse fieldsets and statistics.
Call jsonapi_scope directly here so we can get behavior like sparse fieldsets and statistics .