Fix argument error message for length validation

This commit is contained in:
Alexey Vakhov 2011-12-01 09:12:16 +04:00
parent 52eedf5e2b
commit 814a4c3160
1 changed files with 1 additions and 1 deletions

View File

@ -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|