Fix argument error message for length validation
This commit is contained in:
parent
52eedf5e2b
commit
814a4c3160
|
@ -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 New Issue