Sha256: b5c0f11adccd416fbbede0a2c4fa3fa62eee8d70aa2f86379dfbbb60dc0ac09d

Contents?: true

Size: 276 Bytes

Versions: 8

Compression:

Stored size: 276 Bytes

Contents

require 'bundler/setup'
require 'mongo_mapper'
require_relative '../lib/solidstate'

class Person
  include MongoMapper::Document
  include SolidState

  STATES = %w(awake sleeping)

  key :state, String, :default => STATES.first
  # ensure_index :state

  states *STATES
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solidstate-0.4.5 examples/mongo_mapper.rb
solidstate-0.4.4 examples/mongo_mapper.rb
solidstate-0.4.3 examples/mongo_mapper.rb
solidstate-0.4.2 examples/mongo_mapper.rb
solidstate-0.4.1 examples/mongo_mapper.rb
solidstate-0.4.0 examples/mongo_mapper.rb
solidstate-0.3.1 examples/mongo_mapper.rb
solidstate-0.3.0 examples/mongo_mapper.rb