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.1.0 spec/models/preference.rb
mongoid_spacial-0.0.1 spec/models/preference.rb