Module: ActiveModelSerializers::Jsonapi::ControllerSupport
- Defined in:
- lib/active_model_serializers/register_jsonapi_renderer.rb
Instance Method Summary collapse
Instance Method Details
#serialize_jsonapi(json, options) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/active_model_serializers/register_jsonapi_renderer.rb', line 63 def serialize_jsonapi(json, ) [:adapter] = :json_api .fetch(:serialization_context) do [:serialization_context] = ActiveModelSerializers::SerializationContext.new(request) end get_serializer(json, ) end |