Skip to content

Commit cb624bd

Browse files
committed
fixing issues caused by merge conflict
1 parent a54507b commit cb624bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fast_jsonapi/object_serializer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def belongs_to(relationship_name, options = {})
162162
serializer_key = options[:serializer] || relationship_name.to_sym
163163
key = options[:key] || run_key_transform(relationship_name)
164164
record_type = options[:record_type] || run_key_transform(relationship_name)
165-
relationship = {
165+
add_relationship(name, {
166166
key: key,
167167
name: name,
168168
id_method_name: options[:id_method_name] || (relationship_name.to_s + '_id').to_sym,
@@ -179,7 +179,7 @@ def has_one(relationship_name, options = {})
179179
serializer_key = options[:serializer] || name
180180
key = options[:key] || run_key_transform(relationship_name)
181181
record_type = options[:record_type] || run_key_transform(relationship_name)
182-
relationship = {
182+
add_relationship(name, {
183183
key: key,
184184
name: name,
185185
id_method_name: options[:id_method_name] || (relationship_name.to_s + '_id').to_sym,

0 commit comments

Comments
 (0)