diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-30 22:09:56 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-30 22:09:56 -0800 |
commit | cb7145700d6fd31ef316d97590815ce73bb08cbd (patch) | |
tree | 3ac78dc55f882d8acd60552da2b96189bda7c53f | |
parent | 52eedf5e2b0b39026ab5c63c5f28fe70f88ee8db (diff) | |
parent | 814a4c316019e02ef1858a331226e5ad79f02bf9 (diff) | |
download | rails-cb7145700d6fd31ef316d97590815ce73bb08cbd.tar.gz rails-cb7145700d6fd31ef316d97590815ce73bb08cbd.tar.bz2 rails-cb7145700d6fd31ef316d97590815ce73bb08cbd.zip |
Merge pull request #3823 from avakhov/av-length-validation-exception-msg-fix
Fix argument error message for length validation
-rw-r--r-- | activemodel/lib/active_model/validations/length.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/length.rb b/activemodel/lib/active_model/validations/length.rb index eb7aac709d..6bc928bab7 100644 --- a/activemodel/lib/active_model/validations/length.rb +++ b/activemodel/lib/active_model/validations/length.rb @@ -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| |