mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Errors#add takes keyword arguments
This commit is contained in:
parent
31f54a2f7f
commit
cf43b71b64
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ module ActiveRecord
|
|||
error_options = options.except(:case_sensitive, :scope, :conditions)
|
||||
error_options[:value] = value
|
||||
|
||||
record.errors.add(attribute, :taken, error_options)
|
||||
record.errors.add(attribute, :taken, **error_options)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue