lib/dynamoid/persistence/update_validations.rb in dynamoid-3.8.0 vs lib/dynamoid/persistence/update_validations.rb in dynamoid-3.9.0

- old
+ new

@@ -7,10 +7,10 @@ def self.validate_attributes_exist(model_class, attributes) model_attributes = model_class.attributes.keys attributes.each do |attr_name, _| unless model_attributes.include?(attr_name) - raise Dynamoid::Errors::UnknownAttribute.new("Attribute #{attr_name} does not exist in #{model_class}") + raise Dynamoid::Errors::UnknownAttribute, "Attribute #{attr_name} does not exist in #{model_class}" end end end end end