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.
18 lines
226 B
Ruby
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
|