diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-20 14:23:05 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-20 14:23:05 -0300 |
commit | a63f7a136401b59db52fb802180f6c9793d83bc2 (patch) | |
tree | 08394ea530b70f84809033d856924e08076f9187 /activemodel/lib/active_model/validations/exclusion.rb | |
parent | 770fa81bbad8a77b41a1b5af3c926e6652acccd6 (diff) | |
download | rails-a63f7a136401b59db52fb802180f6c9793d83bc2.tar.gz rails-a63f7a136401b59db52fb802180f6c9793d83bc2.tar.bz2 rails-a63f7a136401b59db52fb802180f6c9793d83bc2.zip |
Update documentation and change the range method name to delimiter.
Diffstat (limited to 'activemodel/lib/active_model/validations/exclusion.rb')
-rw-r--r-- | activemodel/lib/active_model/validations/exclusion.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/validations/exclusion.rb b/activemodel/lib/active_model/validations/exclusion.rb index dfeec37ca1..dc3368c569 100644 --- a/activemodel/lib/active_model/validations/exclusion.rb +++ b/activemodel/lib/active_model/validations/exclusion.rb @@ -30,6 +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>:within</tt> - A synonym(or alias) for <tt>:in</tt> # <tt>Range#cover?</tt>, otherwise with <tt>include?</tt>. # * <tt>:message</tt> - Specifies a custom error message (default is: "is # reserved"). |