Module: ImageDefaults

Includes:
CarrierWave::MiniMagick
Included in:
PhotoUploader
Defined in:
app/uploaders/image_defaults.rb

Instance Method Summary collapse

Instance Method Details

#default_urlObject



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

def default_url
  "/images/fallback/#{model.class.model_name.to_s.underscore}/" <<
    [mounted_as, version_name].compact.join('_') << '.gif'
end

#extension_white_listObject



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

def extension_white_list
  %w[jpg jpeg gif png]
end