Class: ExportedUser

Inherits:
SecureUploader show all
Defined in:
app/uploaders/exported_user.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

#extension_whitelistObject


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

def extension_whitelist
  %w[gz]
end

#filenameObject


16
17
18
# File 'app/uploaders/exported_user.rb', line 16

def filename
  "#{model.username}_diaspora_data_#{secure_token}.json.gz" if original_filename.present?
end

#store_dirObject


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

def store_dir
  "uploads/users"
end