Sha256: 7b0667239b6135ab69ca4e6a2bbb41c8a55a45af410ce18cea3cb6b1cd7b2672

Contents?: true

Size: 172 Bytes

Versions: 4

Compression:

Stored size: 172 Bytes

Contents

class Favorite
  include Mongoid::Document

  field :title
  validates_uniqueness_of :title, :case_sensitive => false

  embedded_in :person, :inverse_of => :favorites
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-eager-loading-0.2.0 spec/models/favorite.rb
mongoid-eager-loading-0.1.2 spec/models/favorite.rb
mongoid-eager-loading-0.1.1 spec/models/favorite.rb
mongoid-eager-loading-0.1.0 spec/models/favorite.rb