aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-16 00:03:03 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-16 00:06:44 -0500
commit007c3d8bcb695c3a712b85eb882c95a940c8875e (patch)
treec659acc1a9ac9c22bb01166b52ab8f5fce63ee93 /activemodel
parent0e07a80f5ab4b1dda1f4a6e373a4ef0b6a933c29 (diff)
downloadrails-007c3d8bcb695c3a712b85eb882c95a940c8875e.tar.gz
rails-007c3d8bcb695c3a712b85eb882c95a940c8875e.tar.bz2
rails-007c3d8bcb695c3a712b85eb882c95a940c8875e.zip
better example format in validates_exclusion_of docs
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/exclusion.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations/exclusion.rb b/activemodel/lib/active_model/validations/exclusion.rb
index 5fedb1978b..310e07f897 100644
--- a/activemodel/lib/active_model/validations/exclusion.rb
+++ b/activemodel/lib/active_model/validations/exclusion.rb
@@ -1,7 +1,6 @@
require "active_model/validations/clusivity"
module ActiveModel
-
# == Active Model Exclusion Validator
module Validations
class ExclusionValidator < EachValidator
@@ -21,7 +20,8 @@ module ActiveModel
# validates_exclusion_of :username, :in => %w( admin superuser ), :message => "You don't belong here"
# validates_exclusion_of :age, :in => 30..60, :message => "This site is only for under 30 and over 60"
# validates_exclusion_of :format, :in => %w( mov avi ), :message => "extension %{value} is not allowed"
- # validates_exclusion_of :password, :in => lambda { |p| [p.username, p.first_name] }, :message => "should not be the same as your username or first name"
+ # validates_exclusion_of :password, :in => lambda { |p| [p.username, p.first_name] },
+ # :message => "should not be the same as your username or first name"
# end
#
# Configuration options: