Sha256: f10f597717c83f1098fe239128b034217ab9b567775d3fac4ee37cd55dd004a3

Contents?: true

Size: 248 Bytes

Versions: 7

Compression:

Stored size: 248 Bytes

Contents

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.3.6 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.3.5 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.3.4 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.3.3 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.3.2 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.3.1 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.3.0 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb