Navigation Menu

Skip to content

Commit

Permalink
Fix example code for #validates_with instance method
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarini authored and fxn committed Jul 25, 2011
1 parent 19a3c9b commit d4832f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/lib/active_model/validations/with.rb
Expand Up @@ -101,7 +101,7 @@ def validates_with(*args, &block)
# class Person
# include ActiveModel::Validations
#
# validates :instance_validations
# validate :instance_validations
#
# def instance_validations
# validates_with MyValidator
Expand All @@ -116,7 +116,7 @@ def validates_with(*args, &block)
# class Person
# include ActiveModel::Validations
#
# validates :instance_validations, :on => :create
# validate :instance_validations, :on => :create
#
# def instance_validations
# validates_with MyValidator, MyOtherValidator
Expand Down

0 comments on commit d4832f1

Please sign in to comment.