Class: Uploads::Local
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#delete_keys_async, #initialize
Constructor Details
This class inherits a constructor from Uploads::Base
Instance Method Details
#delete_keys(keys) ⇒ Object
9 10 11 12 13 |
# File 'app/models/uploads/local.rb', line 9 def delete_keys(keys) keys.each do |path| delete_file(path) end end |
#keys(relation) ⇒ Object
5 6 7 |
# File 'app/models/uploads/local.rb', line 5 def keys(relation) relation.includes(:model).find_each.map(&:absolute_path) end |