mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix argument error message for length validation
This commit is contained in:
parent
52eedf5e2b
commit
814a4c3160
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module ActiveModel
|
|||
keys = CHECKS.keys & options.keys
|
||||
|
||||
if keys.empty?
|
||||
raise ArgumentError, 'Range unspecified. Specify the :within, :maximum, :minimum, or :is option.'
|
||||
raise ArgumentError, 'Range unspecified. Specify the :in, :within, :maximum, :minimum, or :is option.'
|
||||
end
|
||||
|
||||
keys.each do |key|
|
||||
|
|
Loading…
Reference in a new issue