Permalink
Browse files

Fix example code for #validates_with instance method

  • Loading branch information...
1 parent 19a3c9b commit d4832f1027e760fda1b17b0b4b278e72c67f309d @bmarini bmarini committed with fxn Jul 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/validations/with.rb
@@ -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
@@ -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

0 comments on commit d4832f1

Please sign in to comment.