Sha256: f73ac65bca901c59901fbfb0432dcdbc62dfc4c71c35397cf41bda64662d298a

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sunrise-core-0.2.2 lib/generators/sunrise/templates/uploaders/avatar_uploader.rb
sunrise-core-0.2.1 lib/generators/sunrise/templates/uploaders/avatar_uploader.rb
sunrise-locales-0.1.0 spec/dummy/app/uploaders/avatar_uploader.rb
sunrise-core-0.2.0 lib/generators/sunrise/templates/uploaders/avatar_uploader.rb