From e0fdbfd33a36cb6836997392465775f68125d598 Mon Sep 17 00:00:00 2001 From: Sasha Gerrand Date: Mon, 9 May 2011 12:23:24 +1000 Subject: - Fixed typo in the example of a self join on a model --- railties/guides/source/association_basics.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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 -- cgit v1.2.3