Range#cover? is not implemented in AS now

This commit is contained in:
Akira Matsuda 2012-06-12 02:29:21 +09:00
parent a6e4c0f3e4
commit 588bb6b987
2 changed files with 3 additions and 4 deletions

@ -30,8 +30,7 @@ module HelperMethods
# * <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

@ -28,8 +28,8 @@ module HelperMethods
# 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