diff --git a/lib/database_validations/lib/validators/db_uniqueness_validator.rb b/lib/database_validations/lib/validators/db_uniqueness_validator.rb index b480088..7d10244 100644 --- a/lib/database_validations/lib/validators/db_uniqueness_validator.rb +++ b/lib/database_validations/lib/validators/db_uniqueness_validator.rb @@ -41,7 +41,7 @@ def apply_error(instance, attribute) error_options = options.except(:case_sensitive, :scope, :conditions) error_options[:value] = instance.public_send(attribute) - instance.errors.add(attribute, :taken, error_options) + instance.errors.add(attribute, :taken, **error_options) end private