Welcome to mirror list, hosted at ThFree Co, Russian Federation.

exported_photos.rb « uploaders « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0e4465cdd265e2f04a3b39c125023b0312f0128c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

class ExportedPhotos < SecureUploader

  def store_dir
    "uploads/users"
  end

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



end