Permalink
Browse files

fixing removed empty lines and examples

  • Loading branch information...
1 parent a9e66c6 commit 3004bc24706ed62ea7e4e752adc287dc92d168f5 Francesco Rodriguez committed May 16, 2012
View
1 activemodel/lib/active_model/validations/acceptance.rb
@@ -1,4 +1,5 @@
module ActiveModel
+
# == Active Model Acceptance Validator
module Validations
class AcceptanceValidator < EachValidator
View
1 activemodel/lib/active_model/validations/confirmation.rb
@@ -1,4 +1,5 @@
module ActiveModel
+
# == Active Model Confirmation Validator
module Validations
class ConfirmationValidator < EachValidator
View
10 activemodel/lib/active_model/validations/exclusion.rb
@@ -1,6 +1,7 @@
require "active_model/validations/clusivity"
module ActiveModel
+
# == Active Model Exclusion Validator
module Validations
class ExclusionValidator < EachValidator
@@ -18,12 +19,9 @@ module HelperMethods
# particular enumerable object.
#
# class Person < ActiveRecord::Base
- # 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 :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"
# end
View
1 activemodel/lib/active_model/validations/format.rb
@@ -1,4 +1,5 @@
module ActiveModel
+
# == Active Model Format Validator
module Validations
class FormatValidator < EachValidator
View
1 activemodel/lib/active_model/validations/inclusion.rb
@@ -1,6 +1,7 @@
require "active_model/validations/clusivity"
module ActiveModel
+
# == Active Model Inclusion Validator
module Validations
class InclusionValidator < EachValidator
View
1 activemodel/lib/active_model/validations/length.rb
@@ -1,4 +1,5 @@
module ActiveModel
+
# == Active Model Length Validator
module Validations
class LengthValidator < EachValidator
View
1 activemodel/lib/active_model/validations/numericality.rb
@@ -1,4 +1,5 @@
module ActiveModel
+
# == Active Model Numericality Validator
module Validations
class NumericalityValidator < EachValidator
View
1 activemodel/lib/active_model/validations/presence.rb
@@ -1,6 +1,7 @@
require 'active_support/core_ext/object/blank'
module ActiveModel
+
# == Active Model Presence Validator
module Validations
class PresenceValidator < EachValidator

0 comments on commit 3004bc2

Please sign in to comment.