Added examples now to move attachments from one backend to other.

This commit is contained in:
Martin Edenhofer 2014-08-24 12:04:32 +02:00
parent 4668376ae5
commit 665fac5dd7

View file

@ -57,6 +57,8 @@ class Store::File < ApplicationModel
end
# move file from one to other provider
# e. g. Store::File.move('File', 'DB')
# e. g. Store::File.move('DB', 'File')
def self.move(source, target)
adapter_source = load_adapter("Store::Provider::#{ source }")
adapter_target = load_adapter("Store::Provider::#{ target }")