namespace_file_uploader.rb 296 Bytes
Newer Older
1
class NamespaceFileUploader < FileUploader
2 3
  def self.base_dir
    File.join(root_dir, '-', 'system', 'namespace')
4 5
  end

6 7
  def self.dynamic_path_segment(model)
    dynamic_path_builder(model.id.to_s)
8 9
  end

10
  private
11

12 13
  def secure_url
    File.join('/uploads', @secret, file.filename)
14 15
  end
end