Sha256: 64fddd59e62943591b9f53267b45e3c4073a5d94e3b302451e9fdf43e0d193f1

Contents?: true

Size: 282 Bytes

Versions: 8

Compression:

Stored size: 282 Bytes

Contents

require 'pp'
require 'rubygems'
require 'pathname'

root_path = Pathname(__FILE__).dirname.join('..').expand_path
lib_path  = root_path.join('lib')
$:.unshift(lib_path)

require 'toystore'

class User
  include Toy::Store
  key :object_id
end

puts User.new.id # BSON::ObjectId ...

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
toystore-0.7.0 examples/changing_key_factory.rb
toystore-0.6.6 examples/changing_key_factory.rb
toystore-0.6.5 examples/changing_key_factory.rb
toystore-0.6.4 examples/changing_key_factory.rb
toystore-0.6.3 examples/changing_key_factory.rb
toystore-0.6.2 examples/changing_key_factory.rb
toystore-0.6.1 examples/changing_key_factory.rb
toystore-0.6 examples/changing_key_factory.rb