Files
danbooru/app/logical/storage_manager/null.rb
evazion 9c07d710f4 config: fix bug in default backup storage manager config.
Fix uploads failing in the default configuration because the backup
storage manager didn't initialize the null storage manager with the
required `base_url` and `base_dir` options.
2021-03-23 19:53:31 -05:00

18 lines
226 B
Ruby

class StorageManager::Null < StorageManager
def initialize(base_url: "/", base_dir: "/")
super
end
def store(io, path)
# no-op
end
def delete(path)
# no-op
end
def open(path)
# no-op
end
end