Sha256: bd46d4261c4c26e360ea2a6f16b01e71c4c731f9de377b0d86b55caf31f3e801

Contents?: true

Size: 423 Bytes

Versions: 6

Compression:

Stored size: 423 Bytes

Contents

class Sufia::AvatarUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick
  include CarrierWave::Compatibility::Paperclip
  
  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

6 entries across 6 versions & 2 rubygems

Version Path
sufia-4.0.1 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-4.0.1 app/models/sufia/avatar_uploader.rb
sufia-models-4.0.0 app/models/sufia/avatar_uploader.rb
sufia-4.0.0 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-4.0.0.rc2 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-4.0.0.rc2 app/models/sufia/avatar_uploader.rb