Skip to content
Browse files

better example format in validates_exclusion_of docs

  • Loading branch information...
1 parent 0e07a80 commit 007c3d8bcb695c3a712b85eb882c95a940c8875e Francesco Rodriguez committed May 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/validations/exclusion.rb
View
4 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 HelperMethods
# 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:

0 comments on commit 007c3d8

Please sign in to comment.
Something went wrong with that request. Please try again.