Added examples now to move attachments from one backend to other.
This commit is contained in:
parent
4668376ae5
commit
665fac5dd7
1 changed files with 2 additions and 0 deletions
|
@ -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 }")
|
||||
|
|
Loading…
Reference in a new issue