aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSasha Gerrand <sasha@returnity.com>2011-05-09 18:14:44 +1000
committerSasha Gerrand <sasha@returnity.com>2011-05-09 18:14:44 +1000
commitb97e6300ef5c89efdb75a00daa93f449f31c4562 (patch)
treea317b9346f43fc94a03b3fe8c82496975a34a294 /railties
parente0fdbfd33a36cb6836997392465775f68125d598 (diff)
downloadrails-b97e6300ef5c89efdb75a00daa93f449f31c4562.tar.gz
rails-b97e6300ef5c89efdb75a00daa93f449f31c4562.tar.bz2
rails-b97e6300ef5c89efdb75a00daa93f449f31c4562.zip
- Fixed typo in association parameters configuration (again)
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/association_basics.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/association_basics.textile b/railties/guides/source/association_basics.textile
index e59a30624e..458bfefad8 100644
--- a/railties/guides/source/association_basics.textile
+++ b/railties/guides/source/association_basics.textile
@@ -342,8 +342,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",
- belongs_to :manager, :class_name => "Employee"
+ has_many :subordinates, :class_name => "Employee"
+ belongs_to :manager, :class_name => "Employee",
:foreign_key => "manager_id"
end
</ruby>