Class: LogoUploader

Inherits:
BaseUploader
  • Object
show all
Defined in:
app/uploaders/logo_uploader.rb

Instance Method Summary collapse

Instance Method Details

#default_urlObject



11
12
13
# File 'app/uploaders/logo_uploader.rb', line 11

def default_url
  File.join(host, DEFAULTS_BASE_PATH, "upload_image_thumb.png")
end

#filenameObject



7
8
9
# File 'app/uploaders/logo_uploader.rb', line 7

def filename
  "#{model.class.to_s.underscore}_logo.png" if present?
end