lib/identity_cache/encoder.rb in identity_cache-1.5.2 vs lib/identity_cache/encoder.rb in identity_cache-1.5.3

- old
+ new

@@ -67,9 +67,10 @@ end end def record_from_coder(coder, klass) # :nodoc: record = klass.instantiate(coder[:attributes].dup) + record.send(:mark_as_loaded_by_idc) if coder.key?(:associations) coder[:associations].each do |name, value| record.instance_variable_set(klass.cached_association(name).dehydrated_variable_name, value) end