Sha256: e7f3f5eda3e472e337a26ef03ff242509c03d8984c02f85d76fb95a8463bc368
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
require 'pp' require 'pathname' require 'rubygems' require 'adapter/redis' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') $:.unshift(lib_path) require 'toystore' class User include Toy::Store adapter :redis, Redis.new attribute :name, String end user = User.create(:name => 'John') pp user pp User.read(user.id) user.destroy pp User.read(user.id)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.13.2 | examples/redis.rb |
toystore-0.13.1 | examples/redis.rb |