Sha256: 2712fa8b93ba51c7680e34e9d8a4ef1d6f9c83e76ca33191d07661abeef9030b

Contents?: true

Size: 410 Bytes

Versions: 31

Compression:

Stored size: 410 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
    "missing_#{version_name}.png"
  end

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

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
sufia-models-6.7.0 app/models/sufia/avatar_uploader.rb
sufia-models-6.6.1 app/models/sufia/avatar_uploader.rb
sufia-models-6.6.0 app/models/sufia/avatar_uploader.rb
sufia-models-6.5.0 app/models/sufia/avatar_uploader.rb
sufia-models-6.4.0 app/models/sufia/avatar_uploader.rb
sufia-models-6.3.0 app/models/sufia/avatar_uploader.rb
sufia-models-6.2.0 app/models/sufia/avatar_uploader.rb
sufia-models-6.1.0 app/models/sufia/avatar_uploader.rb
sufia-5.0.0 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-5.0.0 app/models/sufia/avatar_uploader.rb
sufia-models-6.0.0 app/models/sufia/avatar_uploader.rb
sufia-6.0.0 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-6.0.0.rc4 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-6.0.0.rc4 app/models/sufia/avatar_uploader.rb
sufia-6.0.0.rc3 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-6.0.0.rc3 app/models/sufia/avatar_uploader.rb
sufia-5.0.0.rc1 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-5.0.0.rc1 app/models/sufia/avatar_uploader.rb
sufia-6.0.0.rc2 sufia-models/app/models/sufia/avatar_uploader.rb
sufia-models-6.0.0.rc2 app/models/sufia/avatar_uploader.rb