Merge pull request #3823 from avakhov/av-length-validation-exception-msg-fix

Fix argument error message for length validation
This commit is contained in:
José Valim
2011-11-30 22:09:56 -08:00

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|