lib/tori/file.rb in tori-0.6.1 vs lib/tori/file.rb in tori-0.6.2

- old
+ new

@@ -57,12 +57,12 @@ def respond_to_missing?(sym, include_private) backend.respond_to?(sym, include_private) end - def method_missing(sym, *args) + def method_missing(sym, *args, &block) if respond_to_missing?(sym, false) - backend.__send__ sym, name, *args + backend.__send__ sym, name, *args, &block else fail NameError, "undefined method `#{sym}' for #{Tori.config.backend.inspect}" end end end