Skip to content

Commit 2e9ac05

Browse files
author
Lee Richmond
committed
Go through deserializer when checking params
This is because jsonapi-rb is adding a _jsonapi prefix key.
1 parent 5fbff8c commit 2e9ac05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi_compliable/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def default_jsonapi_render_options
243243
private
244244

245245
def force_includes?
246-
not params[:data].nil?
246+
not deserialized_params.data.nil?
247247
end
248248

249249
def perform_render_jsonapi(opts)

0 commit comments

Comments
 (0)