Permalink
Browse files

update README

  • Loading branch information...
1 parent 0b3284e commit cb320ca084e7b6437b35ead158acbb36701a4a36 @flyerhzm committed Oct 27, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
3 README.md
@@ -21,12 +21,13 @@ include the module after Mongoid::Document
include Mongoid::EagerLoading
referenced_in :user
+ references_many :comments
end
then you can use the eager loading like
Post.includes(:user)
- Post.includes(:user, :comment)
+ Post.includes(:user, :comments)
eager loading can be only used on referenced_in, references_one and references_many associations.

0 comments on commit cb320ca

Please sign in to comment.