Permalink
Browse files

- Fixed typo in association parameters configuration (again)

  • Loading branch information...
1 parent e0fdbfd commit b97e6300ef5c89efdb75a00daa93f449f31c4562 Sasha Gerrand committed May 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/association_basics.textile
View
4 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>

0 comments on commit b97e630

Please sign in to comment.