diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-06-12 02:29:21 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2012-06-12 02:29:21 +0900 |
commit | 588bb6b987bd3f10b97ce27263e8d7702605a187 (patch) | |
tree | c4ca382eb4a641e39c178cdae677dbecdc7a3e1c /activemodel | |
parent | a6e4c0f3e4d835c84ba2b504648181e0670cff40 (diff) | |
download | rails-588bb6b987bd3f10b97ce27263e8d7702605a187.tar.gz rails-588bb6b987bd3f10b97ce27263e8d7702605a187.tar.bz2 rails-588bb6b987bd3f10b97ce27263e8d7702605a187.zip |
Range#cover? is not implemented in AS now
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validations/exclusion.rb | 3 | ||||
-rw-r--r-- | activemodel/lib/active_model/validations/inclusion.rb | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/validations/exclusion.rb b/activemodel/lib/active_model/validations/exclusion.rb index 4f09679541..edd42d85f2 100644 --- a/activemodel/lib/active_model/validations/exclusion.rb +++ b/activemodel/lib/active_model/validations/exclusion.rb @@ -30,8 +30,7 @@ module ActiveModel # * <tt>:in</tt> - An enumerable object of items that the value shouldn't be # part of. This can be supplied as a proc or lambda which returns an # enumerable. If the enumerable is a range the test is performed with - # <tt>Range#cover?</tt> (backported in Active Support for 1.8), otherwise - # with <tt>include?</tt>. + # <tt>Range#cover?</tt>, otherwise with <tt>include?</tt>. # * <tt>:message</tt> - Specifies a custom error message (default is: "is # reserved"). # * <tt>:allow_nil</tt> - If set to true, skips this validation if the attribute diff --git a/activemodel/lib/active_model/validations/inclusion.rb b/activemodel/lib/active_model/validations/inclusion.rb index ffdbed0fc1..8810f2a3c1 100644 --- a/activemodel/lib/active_model/validations/inclusion.rb +++ b/activemodel/lib/active_model/validations/inclusion.rb @@ -28,8 +28,8 @@ module ActiveModel # Configuration options: # * <tt>:in</tt> - An enumerable object of available items. This can be # supplied as a proc or lambda which returns an enumerable. If the enumerable - # is a range the test is performed with <tt>Range#cover?</tt> - # (backported in Active Support for 1.8), otherwise with <tt>include?</tt>. + # is a range the test is performed with <tt>Range#cover?</tt>, otherwise with + # <tt>include?</tt>. # * <tt>:message</tt> - Specifies a custom error message (default is: "is not # included in the list"). # * <tt>:allow_nil</tt> - If set to true, skips this validation if the attribute |