Don't attempt to dup a nil

This commit is contained in:
Austin Matzko 2018-10-03 17:59:58 -04:00
parent 1ab5cd387a
commit be701f3e06

View File

@ -117,7 +117,7 @@ module FastJsonapi
subclass.transform_method = transform_method subclass.transform_method = transform_method
subclass.cache_length = cache_length subclass.cache_length = cache_length
subclass.race_condition_ttl = race_condition_ttl subclass.race_condition_ttl = race_condition_ttl
subclass.data_links = data_links.dup subclass.data_links = data_links.dup if data_links.present?
subclass.cached = cached subclass.cached = cached
subclass.set_type(subclass.reflected_record_type) if subclass.reflected_record_type subclass.set_type(subclass.reflected_record_type) if subclass.reflected_record_type
subclass.meta_to_serialize = meta_to_serialize subclass.meta_to_serialize = meta_to_serialize