Sha256: cb67218a6a4095275ef88e455ba3d20c9a5c02e7ce0177295625dae1264c74e7

Contents?: true

Size: 350 Bytes

Versions: 48

Compression:

Stored size: 350 Bytes

Contents

class Hyrax::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 extension_whitelist
    %w[jpg jpeg png gif bmp tif tiff]
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.9.5 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.9.4 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.9.3 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.9.2 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.9.1 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.9.0 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.8.0 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.7.2 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.7.1 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.7.0 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.6.0 app/uploaders/hyrax/avatar_uploader.rb
hyrax-3.0.0.pre.rc1 app/uploaders/hyrax/avatar_uploader.rb
hyrax-3.0.0.pre.beta3 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.5.1 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.5.0 app/uploaders/hyrax/avatar_uploader.rb
hyrax-3.0.0.pre.beta2 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.4.1 app/uploaders/hyrax/avatar_uploader.rb
hyrax-3.0.0.pre.beta1 app/uploaders/hyrax/avatar_uploader.rb
hyrax-2.4.0 app/uploaders/hyrax/avatar_uploader.rb