diff options
author | Ben Marini <bmarini@gmail.com> | 2011-07-24 12:13:23 -0700 |
---|---|---|
committer | Ben Marini <bmarini@gmail.com> | 2011-07-24 12:13:23 -0700 |
commit | c02288e6fda824a77f6097f4c03b026b8d6e4f49 (patch) | |
tree | 4df80c37199b1bf1b6472c84b7fbece1f91adc5e /activemodel | |
parent | 4bb0a8bcbdf771dfdfeb5e0f77a07bc60c14d364 (diff) | |
download | rails-c02288e6fda824a77f6097f4c03b026b8d6e4f49.tar.gz rails-c02288e6fda824a77f6097f4c03b026b8d6e4f49.tar.bz2 rails-c02288e6fda824a77f6097f4c03b026b8d6e4f49.zip |
Fix example code for #validates_with instance method
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validations/with.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations/with.rb b/activemodel/lib/active_model/validations/with.rb index 65ae18a769..a87b213fe4 100644 --- a/activemodel/lib/active_model/validations/with.rb +++ b/activemodel/lib/active_model/validations/with.rb @@ -101,7 +101,7 @@ module ActiveModel # class Person # include ActiveModel::Validations # - # validates :instance_validations + # validate :instance_validations # # def instance_validations # validates_with MyValidator @@ -116,7 +116,7 @@ module ActiveModel # class Person # include ActiveModel::Validations # - # validates :instance_validations, :on => :create + # validate :instance_validations, :on => :create # # def instance_validations # validates_with MyValidator, MyOtherValidator |