lib/dynamoid/loadable.rb in dynamoid-3.6.0 vs lib/dynamoid/loadable.rb in dynamoid-3.7.0
- old
+ new
@@ -8,11 +8,11 @@
attrs.each do |key, value|
send("#{key}=", value) if respond_to?("#{key}=")
end
end
- # Reload an object from the database -- if you suspect the object has changed in the datastore and you need those
+ # Reload an object from the database -- if you suspect the object has changed in the data store and you need those
# changes to be reflected immediately, you would call this method. This is a consistent read.
#
# @return [Dynamoid::Document] the document this method was called on
#
# @since 0.2.0
@@ -21,10 +21,10 @@
if self.class.range_key
options[:range_key] = range_value
end
- self.attributes = self.class.find(hash_key, options).attributes
+ self.attributes = self.class.find(hash_key, **options).attributes
@associations.values.each(&:reset)
self
end
end
end