Class: RestaurantTermConditionUploader

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

Overview

typed: ignore

Instance Method Summary collapse

Methods inherited from ApplicationUploader

#extension_whitelist, #quality, #store_dir, #validate_dimensions

Instance Method Details

#filenameObject



3
4
5
6
7
8
9
# File 'app/uploaders/restaurant_term_condition_uploader.rb', line 3

def filename
  if original_filename.present?
    "tc.#{file.extension}"
  else
    super
  end
end