examples/memory.rb in toystore-0.6.1 vs examples/memory.rb in toystore-0.6.2
- old
+ new
@@ -1,8 +1,13 @@
require 'pp'
+require 'pathname'
require 'rubygems'
-require 'toystore'
require 'adapter/memory'
+
+root_path = Pathname(__FILE__).dirname.join('..').expand_path
+lib_path = root_path.join('lib')
+$:.unshift(lib_path)
+require 'toystore'
class User
include Toy::Store
store :memory, {}
\ No newline at end of file