spec/models/user.rb in mongoid-eager-loading-0.2.0 vs spec/models/user.rb in mongoid-eager-loading-0.3.0

- old
+ new

@@ -1,8 +1,9 @@ class User include Mongoid::Document - references_one :account, :foreign_key => :creator_id - references_many :posts, :foreign_key => :author_id, :inverse_of => :author + field :name + references_one :account, :foreign_key => :creator_id + references_many :posts, :foreign_key => :author_id references_many :descriptions end