Sha256: 158df79b24f0e1d645c89a98c43173b46225753c1a2fb33735038a71b5b5b66e

Contents?: true

Size: 218 Bytes

Versions: 5

Compression:

Stored size: 218 Bytes

Contents

class Preference
  include Mongoid::Document
  field :name
  field :value
  references_many :people, :stored_as => :array, :inverse_of => :preferences
  validates_length_of :name, :minimum => 2, :allow_nil => true
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mongoid-eager-loading-0.2.0 spec/models/preference.rb
mongoid-eager-loading-0.1.2 spec/models/preference.rb
mongoid-eager-loading-0.1.1 spec/models/preference.rb
mongoid-eager-loading-0.1.0 spec/models/preference.rb
mongoid-locomotive-2.0.0.beta9 spec/models/preference.rb