Sha256: adcfd892b4ef8dd9294f4be1f7c5a9a4d7fea06fe16719a8fe483264917a43ce

Contents?: true

Size: 444 Bytes

Versions: 18

Compression:

Stored size: 444 Bytes

Contents

class Sufia::AvatarUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick
  include CarrierWave::Compatibility::Paperclip

  process convert: 'png'

  version :medium do
    process resize_to_limit: [300, 300]
  end

  version :thumb do
    process resize_to_limit: [100, 100]
  end

  def default_url
    "/assets/missing_#{version_name}.png"
  end

  def extension_white_list
    %w(jpg jpeg png gif bmp tif tiff)
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
sufia-4.0.0.rc1 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-4.0.0.rc1 app/models/sufia/avatar_uploader.rb
sufia-4.0.0.beta4 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-4.0.0.beta4 app/models/sufia/avatar_uploader.rb
sufia-models-4.0.0.beta3 app/models/sufia/avatar_uploader.rb
sufia-4.0.0.beta3 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-4.0.0.beta2 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-4.0.0.beta2 app/models/sufia/avatar_uploader.rb
sufia-4.0.0.beta1 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-4.0.0.beta1 app/models/sufia/avatar_uploader.rb
sufia-models-3.7.2 app/models/sufia/avatar_uploader.rb
sufia-3.7.2 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-3.7.1 app/models/sufia/avatar_uploader.rb
sufia-3.7.1 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-3.7.0 app/models/sufia/avatar_uploader.rb
sufia-3.7.0 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-3.6.1 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-3.6.1 app/models/sufia/avatar_uploader.rb