diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-06-14 22:52:38 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-06-14 22:52:38 +0530 |
commit | c1474ff2e78da7a3443c3eee470a1e9aa5b560dd (patch) | |
tree | d02393ca969e8ab612ab7e764f5504c34bd6da89 /activemodel/lib/active_model/validations/inclusion.rb | |
parent | f5e7cb84cd377feb1b60c5356ce02123e9c94380 (diff) | |
parent | 5795efa9d8c330853c9ce4507abc3d5b8baa65e1 (diff) | |
download | rails-c1474ff2e78da7a3443c3eee470a1e9aa5b560dd.tar.gz rails-c1474ff2e78da7a3443c3eee470a1e9aa5b560dd.tar.bz2 rails-c1474ff2e78da7a3443c3eee470a1e9aa5b560dd.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activemodel/lib/active_model/validations/inclusion.rb')
-rw-r--r-- | activemodel/lib/active_model/validations/inclusion.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |