Browse files

Fix argument error message for length validation

  • Loading branch information...
1 parent 52eedf5 commit 814a4c316019e02ef1858a331226e5ad79f02bf9 @avakhov avakhov committed Dec 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/validations/length.rb
View
2 activemodel/lib/active_model/validations/length.rb
@@ -23,7 +23,7 @@ def check_validity!
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|

0 comments on commit 814a4c3

Please sign in to comment.