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

- old
+ new

@@ -3,6 +3,9 @@ field :details referenced_in :user referenced_in :updater, :class_name => 'User' + + validates :user, :associated => true + validates :details, :presence => true end