diff options
author | Sasha Gerrand <sasha@returnity.com> | 2011-05-09 12:23:24 +1000 |
---|---|---|
committer | Sasha Gerrand <sasha@returnity.com> | 2011-05-09 12:23:24 +1000 |
commit | e0fdbfd33a36cb6836997392465775f68125d598 (patch) | |
tree | 8e79631ed4ae2af54d715ce47039ebdfc0ef91a2 /railties/guides | |
parent | fda9c7d0c872fcb75e24ae8479bb6c0a34d65e70 (diff) | |
download | rails-e0fdbfd33a36cb6836997392465775f68125d598.tar.gz rails-e0fdbfd33a36cb6836997392465775f68125d598.tar.bz2 rails-e0fdbfd33a36cb6836997392465775f68125d598.zip |
- Fixed typo in the example of a self join on a model
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/association_basics.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/association_basics.textile b/railties/guides/source/association_basics.textile index 43babb8b52..e59a30624e 100644 --- a/railties/guides/source/association_basics.textile +++ b/railties/guides/source/association_basics.textile @@ -342,7 +342,7 @@ In designing a data model, you will sometimes find a model that should have a re <ruby> class Employee < ActiveRecord::Base - has_many :subordinates, :class_name => "Employee" + has_many :subordinates, :class_name => "Employee", belongs_to :manager, :class_name => "Employee" :foreign_key => "manager_id" end |