File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6565 # @return [Hash] the raw :attributes hash + +id+
6666 def attributes
6767 @attributes ||= raw_attributes . tap do |hash |
68- hash . merge! ( id : id ) if id
68+ hash [ :id ] = id if id
6969 end
7070 end
7171
@@ -191,13 +191,14 @@ def process_relationship_datum(datum)
191191 attributes = included_object [ :attributes ] || { }
192192 attributes [ :id ] = datum [ :id ] if datum [ :id ]
193193 relationships = process_relationships ( included_object [ :relationships ] || { } )
194-
194+ method = datum [ :method ]
195+ method = method . to_sym if method
195196
196197 {
197198 meta : {
198199 jsonapi_type : datum [ :type ] ,
199200 temp_id : temp_id ,
200- method : datum [ : method] . try ( :to_sym )
201+ method : method
201202 } ,
202203 attributes : attributes ,
203204 relationships : relationships
You can’t perform that action at this time.
0 commit comments