lib/jsonapionify/api/relationship/one.rb in jsonapionify-0.10.2 vs lib/jsonapionify/api/relationship/one.rb in jsonapionify-0.11.0

- old
+ new

@@ -15,11 +15,11 @@ callbacks: callbacks, cacheable: true, prepend: 'relationships' } define_action(:show, 'GET', **options, &block).response status: 200 do |context| - context.response_object[:data] = build_resource_identifier(context.instance) + context.response_object[:data] = build_resource_identifier(instance: context.instance) context.response_object.to_json end end define_singleton_method(:replace) do |content_type: nil, callbacks: true, &block| @@ -28,10 +28,10 @@ callbacks: callbacks, cacheable: false, prepend: 'relationships' } define_action(:replace, 'PATCH', **options, &block).response status: 200 do |context| - context.response_object[:data] = build_resource_identifier(context.instance) + context.response_object[:data] = build_resource_identifier(instance: context.instance) context.response_object.to_json end end context :instance do |context|