lib/jsonapi_compliable/deserializer.rb in jsonapi_compliable-0.11.0 vs lib/jsonapi_compliable/deserializer.rb in jsonapi_compliable-0.11.1

- old
+ new

@@ -205,12 +205,20 @@ relationships: relationships } end def raw_attributes - data[:attributes] || {} + if data + data[:attributes] || {} + else + {} + end end def raw_relationships - data[:relationships] || {} + if data + data[:relationships] || {} + else + {} + end end end