examples/redis.rb in toystore-0.8.3 vs examples/redis.rb in toystore-0.9.0
- old
+ new
@@ -8,10 +8,10 @@
$:.unshift(lib_path)
require 'toystore'
class User
include Toy::Store
- store :redis, Redis.new
+ adapter :redis, Redis.new
attribute :name, String
end
user = User.create(:name => 'John')
\ No newline at end of file