Sha256: 07fd21a7145e5b996a763eeb41afa4ec019503b87b5b09446febe616e38505b1

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

class PictureUploader < AbAdmin::CarrierWave::BaseUploader
  
  process quality: 80
  process cropper: :cropper_geometry

  version :thumb do
    process resize_to_fill: [80, 80]
  end

  def extension_whitelist
    %w(jpg jpeg gif png)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ab_admin-0.9.0 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.8.3 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.8.2 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.8.1 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.8.0 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.7.0 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb