lib/spontaneous/output/store.rb in spontaneous-0.2.0.beta5 vs lib/spontaneous/output/store.rb in spontaneous-0.2.0.beta6
- old
+ new
@@ -12,10 +12,10 @@
# store which needs to work in a way compatible with the use of
# an frontend HTTP proxy, e.g. Nginx
def self.new(backend_class, options = {})
backend = case backend_class
when :File
- File.new(options[:root])
+ File.new(options[:root] || options[:dir])
else
Moneta.new(backend_class, options)
end
Store.new(backend)
end