lib/dynamoid/persistence/update_validations.rb in dynamoid-3.9.0 vs lib/dynamoid/persistence/update_validations.rb in dynamoid-3.10.0
- old
+ new
@@ -5,10 +5,10 @@
# @private
module UpdateValidations
def self.validate_attributes_exist(model_class, attributes)
model_attributes = model_class.attributes.keys
- attributes.each do |attr_name, _|
+ attributes.each_key do |attr_name|
unless model_attributes.include?(attr_name)
raise Dynamoid::Errors::UnknownAttribute, "Attribute #{attr_name} does not exist in #{model_class}"
end
end
end