diff options
author | sgerrand <github.com@sgerrand.com> | 2011-05-08 19:27:19 -0700 |
---|---|---|
committer | sgerrand <github.com@sgerrand.com> | 2011-05-08 19:27:19 -0700 |
commit | 2fae429941ec53795fd29df68b22bec12adc16bb (patch) | |
tree | 8e79631ed4ae2af54d715ce47039ebdfc0ef91a2 /railties | |
parent | d6ff2eea0b66df825105aa7b74a32db7fd3db8b9 (diff) | |
parent | e0fdbfd33a36cb6836997392465775f68125d598 (diff) | |
download | rails-2fae429941ec53795fd29df68b22bec12adc16bb.tar.gz rails-2fae429941ec53795fd29df68b22bec12adc16bb.tar.bz2 rails-2fae429941ec53795fd29df68b22bec12adc16bb.zip |
Merge pull request #41 from sgerrand/master
Corrected foreign key parameter placement in the self join example
Diffstat (limited to 'railties')
-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 94dce1b97b..e59a30624e 100644 --- a/railties/guides/source/association_basics.textile +++ b/railties/guides/source/association_basics.textile @@ -343,8 +343,8 @@ 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", - :foreign_key => "manager_id" belongs_to :manager, :class_name => "Employee" + :foreign_key => "manager_id" end </ruby> |