Skip to content
Browse files

Class name specified in example is Person, not AttributePerson.

  • Loading branch information...
1 parent fc9b521 commit 14e2fe200a996e466f57fdf793f1dcb4484c7849 @ugisozols ugisozols committed with vijaydev
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/lib/active_model/attribute_methods.rb
View
6 activemodel/lib/active_model/attribute_methods.rb
@@ -92,10 +92,10 @@ module ClassMethods
#
# 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

0 comments on commit 14e2fe2

Please sign in to comment.
Something went wrong with that request. Please try again.