We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8078b3 + 69e9d5d commit 6d49925Copy full SHA for 6d49925
1 file changed
lib/jsonapi/rails/controller/deserialization.rb
@@ -49,7 +49,8 @@ def deserializable_resource(key, options = {}, &block)
49
Class.new(JSONAPI::Rails::DeserializableResource, &block)
50
51
before_action(options) do |controller|
52
- hash = controller.params.to_unsafe_hash[:_jsonapi]
+ hash = controller.params.to_unsafe_hash
53
+ .with_indifferent_access[:_jsonapi]
54
if hash.nil?
55
JSONAPI::Rails.logger.warn do
56
"Unable to deserialize #{key} because no JSON API payload was" \
0 commit comments