Sha256: 114f9dec2ff72834388a32e6e4bdf5b8ba273c7ee05e82cb8a8f2b9639a9ca7b

Contents?: true

Size: 219 Bytes

Versions: 7

Compression:

Stored size: 219 Bytes

Contents

class PictureUploader < AbAdmin::CarrierWave::BaseUploader
  
  process :quality => 90
  
  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.2.3 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.2.2 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.2.1 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.2.0 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.1.2 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.1.1 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb
ab_admin-0.1.0 lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb