Sha256: 456769a096ad4c7a123d3992b6c28cd746056e61a71397a5e1a6caac1064a263

Contents?: true

Size: 296 Bytes

Versions: 22

Compression:

Stored size: 296 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
mongoid_spacial-0.2.17 spec/models/preference.rb
sig_mongoid_spacial-0.2.17 spec/models/preference.rb
cb_mongoid_spacial-0.2.16 spec/models/preference.rb
mongoid_geospatial-1.0.0 spec/models/preference.rb
mongoid_geospatial-1.0.0rc1 spec/models/preference.rb
mongoid_geospatial-1.0.0rc0 spec/models/preference.rb
mongoid_spacial-0.2.16 spec/models/preference.rb
mongoid_spacial-0.2.13 spec/models/preference.rb
mongoid_spacial-0.2.12 spec/models/preference.rb
mongoid_spacial-0.2.11 spec/models/preference.rb
mongoid_spacial-0.2.10 spec/models/preference.rb
mongoid_spacial-0.2.8 spec/models/preference.rb
mongoid_spacial-0.2.7 spec/models/preference.rb
mongoid_spacial-0.2.6 spec/models/preference.rb
mongoid_spacial-0.2.5 spec/models/preference.rb
mongoid_spacial-0.2.4 spec/models/preference.rb
mongoid_spacial-0.2.3 spec/models/preference.rb
mongoid_spacial-0.2.2 spec/models/preference.rb
mongoid_spacial-0.2.0 spec/models/preference.rb
mongoid_spacial-0.1.1 spec/models/preference.rb