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-1.0.6 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.5 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.4 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.3 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.2 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.1 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.0 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.0.rc3 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.0.rc2 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-1.0.0.rc1 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.7.0.rc2 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.7.0.rc1 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.6.11 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.6.10 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.6.9 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.6.8 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.6.7 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.6.6 lib/generators/sunrise/templates/uploaders/picture_uploader.rb
sunrise-cms-0.6.5 spec/tmp/app/uploaders/picture_uploader.rb
sunrise-cms-0.6.5 lib/generators/sunrise/templates/uploaders/picture_uploader.rb