Permalink
Browse files

Merge pull request #6306 from erichmenge/3-2-stable-guide-fix

3 2 stable guide fix [ci skip]
  • Loading branch information...
2 parents 8a5b51e + 3f7ed52 commit e7d5ba37f07ee8ff9daa3d80a81c8afc0b7148cc @carlosantoniodasilva carlosantoniodasilva committed May 13, 2012
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,9 +342,9 @@ 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",
:foreign_key => "manager_id"
+ belongs_to :manager, :class_name => "Employee"
end
</ruby>

0 comments on commit e7d5ba3

Please sign in to comment.