diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-12-01 09:12:16 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-12-01 09:12:16 +0400 |
commit | 814a4c316019e02ef1858a331226e5ad79f02bf9 (patch) | |
tree | 3ac78dc55f882d8acd60552da2b96189bda7c53f | |
parent | 52eedf5e2b0b39026ab5c63c5f28fe70f88ee8db (diff) | |
download | rails-814a4c316019e02ef1858a331226e5ad79f02bf9.tar.gz rails-814a4c316019e02ef1858a331226e5ad79f02bf9.tar.bz2 rails-814a4c316019e02ef1858a331226e5ad79f02bf9.zip |
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| |