From b97e6300ef5c89efdb75a00daa93f449f31c4562 Mon Sep 17 00:00:00 2001 From: Sasha Gerrand Date: Mon, 9 May 2011 18:14:44 +1000 Subject: [PATCH] - Fixed typo in association parameters configuration (again) --- railties/guides/source/association_basics.textile | 4 ++-- 1 file 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 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