Sha256: d74960a024313cc05a866bf2ea1582669aa57841027e156030722ee2d1dba45a

Contents?: true

Size: 310 Bytes

Versions: 6

Compression:

Stored size: 310 Bytes

Contents

class PictureUploader < Sunrise::CarrierWave::BaseUploader
  
  process :strip
  process :quality => 90
  
  version :thumb do
    process :resize_to_fill => [100, 100]
  end

  version :content do
    process :resize_to_fit => [575, 500]
  end
  
  def extension_white_list
    %w(jpg jpeg gif png)
  end
end

Version data entries

6 entries across 4 versions & 2 rubygems

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