Sha256: 5607e7afa8330efa983bf71673e80d2fbc260efcdd8bccd18239d0657c21475d

Contents?: true

Size: 239 Bytes

Versions: 2

Compression:

Stored size: 239 Bytes

Contents

class AvatarUploader < Sunrise::CarrierWave::BaseUploader
  
  process :strip
  process :quality => 90
  
  version :thumb do
    process :resize_to_fill => [100, 100]
  end
  
  def extension_white_list
    %w(jpg jpeg gif png)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunrise-core-0.2.1 spec/tmp/app/uploaders/avatar_uploader.rb
sunrise-core-0.2.0 spec/tmp/app/uploaders/avatar_uploader.rb