Class: Virgo::AvatarUploader

Inherits:
ApplicationUploader show all
Defined in:
app/uploaders/virgo/avatar_uploader.rb

Instance Method Summary collapse

Methods inherited from ApplicationUploader

#store_dir

Instance Method Details

#default_url(*args) ⇒ Object



13
14
15
16
17
18
19
# File 'app/uploaders/virgo/avatar_uploader.rb', line 13

def default_url(*args)
  if version_name == :thumb
    '//placehold.it/120x120'
  else
    '//placehold.it/330x330'
  end
end

#extension_white_listObject



9
10
11
# File 'app/uploaders/virgo/avatar_uploader.rb', line 9

def extension_white_list
  %w(jpg jpeg gif png)
end