Sha256: f699201da7d7817fc5d744051dcb9153a59a694e0bfe90970cdd635c430ecc5e

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

class Preference
  include Mongoid::Document
  field :name
  field :value
  references_and_referenced_in_many :people
  validates_length_of :name, :minimum => 2, :allow_nil => true
  scope :posting, where(:value.in => [ "Posting" ])
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-eager-loading-0.3.1 spec/models/preference.rb
mongoid-eager-loading-0.3.0 spec/models/preference.rb