From 6285675db1cf983ba6c15442aedb457c8041f5ee Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Fri, 22 Jun 2012 22:14:29 +0530 Subject: fixes a few mistakes in api docs [ci skip] --- activemodel/lib/active_model/attribute_methods.rb | 2 +- activemodel/lib/active_model/validations.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'activemodel') diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index 0b701e89dd..671c743b77 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -187,7 +187,7 @@ module ActiveModel # # private # - # def attribute_short?(attr) + # def attribute_short?(attr) # send(attr).length < 5 # end # end diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index 93b830dd9c..7b980d43e6 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -162,7 +162,7 @@ module ActiveModel # validates_with StrictValidator, strict: true # end # - # User.validators + # Person.validators # # => [ # # #, # # #:create}>, -- cgit v1.2.3