Sha256: 71edc56141904124d3cbf1f0e321d906600983248c1d5037c2baea75b34358cf

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 Bytes

Contents

class AvatarUploader < AbAdmin::CarrierWave::BaseUploader
  
  process quality: 80
  
  version :thumb do
    process resize_to_fill: [80, 80, 'North']
  end

  def extension_white_list
    %w(jpg jpeg gif png)
  end

  #def move_to_cache
  #  true
  #end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.6.1 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb
ab_admin-0.6.0 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb
ab_admin-0.5.0 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb
ab_admin-0.4.0 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb