diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-09-29 14:33:32 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-09-29 14:33:32 +0300 |
commit | 62a9e5a96008ac0300c181ad7b182a4d5390920e (patch) | |
tree | eb80afe24cfeb77c7cf8d66935f3f33651e40eec /activemodel/lib | |
parent | 0678a5bb18b7045054a03bbe2ca0434486a7d404 (diff) | |
download | rails-62a9e5a96008ac0300c181ad7b182a4d5390920e.tar.gz rails-62a9e5a96008ac0300c181ad7b182a4d5390920e.tar.bz2 rails-62a9e5a96008ac0300c181ad7b182a4d5390920e.zip |
Class name specified in example is Person, not AttributePerson.
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/attribute_methods.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index a201e983cd..ef0b95424e 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -93,10 +93,10 @@ module ActiveModel # # Provides you with: # - # AttributePerson.primary_key + # Person.primary_key # # => "sysid" - # AttributePerson.inheritance_column = 'address' - # AttributePerson.inheritance_column + # Person.inheritance_column = 'address' + # Person.inheritance_column # # => 'address_id' def define_attr_method(name, value=nil, &block) sing = singleton_class |