1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

- Fixed typo in association parameters configuration (again)

This commit is contained in:
Sasha Gerrand 2011-05-09 18:14:44 +10:00
parent e0fdbfd33a
commit b97e6300ef

View file

@ -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>