BUGFIX: backup/restore when using multisite

This commit is contained in:
Régis Hanol 2014-04-07 17:55:38 +02:00
parent a784583004
commit 7e7ca43a19

View file

@ -47,7 +47,7 @@ class Backup
end end
def self.base_directory def self.base_directory
@base_directory ||= File.join(Rails.root, "public", "backups", RailsMultisite::ConnectionManagement.current_db) File.join(Rails.root, "public", "backups", RailsMultisite::ConnectionManagement.current_db)
end end
def self.chunk_path(identifier, filename, chunk_number) def self.chunk_path(identifier, filename, chunk_number)