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

- old
+ new

@@ -1,8 +1,7 @@ class Agent include Mongoid::Document field :title field :number - embeds_many :names - references_many :posts, :foreign_key => :poster_id - accepts_nested_attributes_for :posts, :allow_destroy => true + embeds_many :names, :as => :namable + referenced_in :game end