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

- old
+ new

@@ -1,9 +1,10 @@ class UserAccount include Mongoid::Document field :username + field :name field :email validates_uniqueness_of :username, :message => "is not unique" validates_uniqueness_of :email, :message => "is not unique", :case_sensitive => false - - referenced_in :person, :inverse_of => :user_accounts + validates_length_of :name, :minimum => 2, :allow_nil => true + references_and_referenced_in_many :people end