Browse Source

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

Martin Edenhofer 10 years ago
parent
commit
665fac5dd7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/models/store/file.rb

+ 2 - 0
app/models/store/file.rb

@@ -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 }")