Sha256: 217eba0695bd3707e6cd8a1a4690a21031091e91a8826ec1bdd26402bdc59d93

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 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_white_list
    %w(jpg jpeg png gif bmp tif tiff)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_hyrax-0.0.1.alpha app/uploaders/hyrax/avatar_uploader.rb