Skip to content

Commit 905e922

Browse files
committed
Expose jsonapi_object option.
1 parent 8edb6f6 commit 905e922

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jsonapi/rails/renderer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def self.render(resources, options)
1010
url_helpers: ::Rails.application.routes.url_helpers
1111
}
1212
opts[:expose] = default_exposures.merge!(opts[:expose] || {})
13+
opts[:jsonapi] = opts.delete(:jsonapi_object)
1314

1415
JSONAPI::Serializable::Renderer.render(resources, opts)
1516
end

0 commit comments

Comments
 (0)