Skip to content

Commit 9df20e2

Browse files
author
Lee Richmond
committed
Accomodate prefixed serialization
Caused by bump in jsonapi-rb
1 parent eecd9b9 commit 9df20e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jsonapi_compliable/deserializer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class JsonapiCompliable::Deserializer
4949
# @param env [Hash] the Rack env (e.g. +request.env+).
5050
def initialize(payload, env)
5151
@payload = payload
52+
@payload = @payload[:_jsonapi] if @payload.has_key?(:_jsonapi)
5253
@env = env
5354
end
5455

0 commit comments

Comments
 (0)