Skip to content

Commit a018f1d

Browse files
committed
minor fixes to data links feature
1 parent ea5296a commit a018f1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fast_jsonapi/object_serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def process_options(options)
7272
@known_included_objects = {}
7373
@meta = options[:meta]
7474
@links = options[:links]
75-
@data_links = {}
7675
@params = options[:params] || {}
7776
raise ArgumentError.new("`params` option passed to serializer must be a hash") unless @params.is_a?(Hash)
7877

@@ -97,6 +96,7 @@ def inherited(subclass)
9796
subclass.transform_method = transform_method
9897
subclass.cache_length = cache_length
9998
subclass.race_condition_ttl = race_condition_ttl
99+
subclass.data_links = data_links
100100
subclass.cached = cached
101101
end
102102

0 commit comments

Comments
 (0)