diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-06-22 22:14:29 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-06-22 22:14:29 +0530 |
commit | 6285675db1cf983ba6c15442aedb457c8041f5ee (patch) | |
tree | d3fa66d3bc136f2dd90eeb17c0a463139e7a9f6c /activemodel | |
parent | 741cb5b12b87f0405d421c82f04cd86eba6c613b (diff) | |
download | rails-6285675db1cf983ba6c15442aedb457c8041f5ee.tar.gz rails-6285675db1cf983ba6c15442aedb457c8041f5ee.tar.bz2 rails-6285675db1cf983ba6c15442aedb457c8041f5ee.zip |
fixes a few mistakes in api docs [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/attribute_methods.rb | 2 | ||||
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 2 |
2 files changed, 2 insertions, 2 deletions
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 # # => [ # # #<MyValidator:0x007fbff403e808 @options={}>, # # #<OtherValidator:0x007fbff403d930 @options={:on=>:create}>, |