Class: ExportedPhotos

Inherits:
SecureUploader show all
Defined in:
app/uploaders/exported_photos.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Method Summary collapse

Instance Method Details

#filenameObject


12
13
14
# File 'app/uploaders/exported_photos.rb', line 12

def filename
  "#{model.username}_photos_#{secure_token}.zip" if original_filename.present?
end

#store_dirObject


8
9
10
# File 'app/uploaders/exported_photos.rb', line 8

def store_dir
  "uploads/users"
end