lib/dynamoid/loadable.rb in dynamoid-3.9.0 vs lib/dynamoid/loadable.rb in dynamoid-3.10.0

- old
+ new

@@ -4,11 +4,11 @@ module Loadable extend ActiveSupport::Concern def load(attrs) attrs.each do |key, value| - send("#{key}=", value) if respond_to?("#{key}=") + send(:"#{key}=", value) if respond_to?(:"#{key}=") end self end @@ -25,10 +25,10 @@ options[:range_key] = range_value end self.attributes = self.class.find(hash_key, **options).attributes - @associations.values.each(&:reset) + @associations.each_value(&:reset) @new_record = false self end end