Skip to content

Commit e1f782e

Browse files
Erolshishirmk
authored andcommitted
Add missing fieldset parameter
1 parent 3df48cd commit e1f782e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fast_jsonapi/serialization_core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def record_hash(record, fieldset, params = {})
6767
temp_hash[:links] = links_hash(record, params) if data_links.present?
6868
temp_hash
6969
end
70-
record_hash[:relationships] = record_hash[:relationships].merge(relationships_hash(record, uncachable_relationships_to_serialize, params)) if uncachable_relationships_to_serialize.present?
70+
record_hash[:relationships] = record_hash[:relationships].merge(relationships_hash(record, uncachable_relationships_to_serialize, fieldset, params)) if uncachable_relationships_to_serialize.present?
7171
record_hash
7272
else
7373
record_hash = id_hash(id_from_record(record), record_type, true)

0 commit comments

Comments
 (0)