lib/saviour/base_uploader.rb in saviour-0.6.3 vs lib/saviour/base_uploader.rb in saviour-0.6.4
- old
+ new
@@ -77,9 +77,11 @@
@processors ||= []
end
def storage
@storage ||= Config.storage
+
+ @storage.respond_to?(:call) ? @storage.call : @storage
end
def process(name = nil, opts = {}, type = :memory, &block)
if block_given?
processors.push(method_or_block: name || block, type: type)