We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ab5cd3 commit be701f3Copy full SHA for be701f3
1 file changed
lib/fast_jsonapi/object_serializer.rb
@@ -117,7 +117,7 @@ def inherited(subclass)
117
subclass.transform_method = transform_method
118
subclass.cache_length = cache_length
119
subclass.race_condition_ttl = race_condition_ttl
120
- subclass.data_links = data_links.dup
+ subclass.data_links = data_links.dup if data_links.present?
121
subclass.cached = cached
122
subclass.set_type(subclass.reflected_record_type) if subclass.reflected_record_type
123
subclass.meta_to_serialize = meta_to_serialize
0 commit comments