Permalink
Browse files

Fix typo in self-referential association example code

  • Loading branch information...
1 parent 2943b33 commit c3bcfcbeadf72fb549aee05d0eeab60b575a459c @jeremyevans committed Jun 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/association_basics.rdoc
@@ -247,7 +247,7 @@ example is a tree structure:
class Node
many_to_one :parent, :class=>self
- one_to_many :children :key=>:parent_id, :class=>self
+ one_to_many :children, :key=>:parent_id, :class=>self
end
For many_to_many self_referential associations, it's fairly similar. Here's

0 comments on commit c3bcfcb

Please sign in to comment.