Sha256: 2367bed951e2afbfe4188eaf4f6a7b04b1c41b656d322981b63006128b506993

Contents?: true

Size: 288 Bytes

Versions: 57

Compression:

Stored size: 288 Bytes

Contents

class PictureUploader < Sunrise::CarrierWave::BaseUploader
  process :quality => 90
  
  version :thumb do
    process :resize_to_fill => [50, 50]
  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

57 entries across 40 versions & 1 rubygems

Version Path
sunrise-cms-0.5.0.rc2 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.5.0.rc1 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.5.0.rc1 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.4.2 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.4.2 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.4.1 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.4.1 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.4.0 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.4.0 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.3.3 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.3.3 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.3.2 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.3.2 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.3.1 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.3.1 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.3.0 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.3.0 spec/tmp/app/uploaders/picture_uploader.rb