Browse files

sorry there are no needs to include Mongoid::EagerLoading

  • Loading branch information...
flyerhzm committed Oct 27, 2010
1 parent cb320ca commit 3026e4ba2f22fa2fbc9afc8f4d5f3c1c987a4c71
Showing with 1 addition and 2 deletions.
  1. +1 −2
@@ -14,11 +14,10 @@ define it in your Gemfile
gem "mongoid-eager-loading"
-include the module after Mongoid::Document
+suppose you have a mongoid model Post
class Post
include Mongoid::Document
- include Mongoid::EagerLoading
referenced_in :user
references_many :comments

0 comments on commit 3026e4b

Please sign in to comment.