Sha256: 2bc40c456170f472182718a35dbfd84fede71f1269799edad8ce961deb122ac7
Contents?: true
Size: 558 Bytes
Versions: 38
Compression:
Stored size: 558 Bytes
Contents
module Saviour module Uploader class StoreDirExtractor def initialize(uploader) @uploader = uploader end def store_dir_handler @store_dir_handler ||= @uploader.class.store_dirs.last end def store_dir @store_dir ||= begin if store_dir_handler if store_dir_handler.respond_to?(:call) @uploader.instance_eval(&store_dir_handler) else @uploader.send(store_dir_handler) end end end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems