Sha256: 7a3ffb1b0906da52f2dde98bdaee9fb9388c62b368df4adf32016b9aa3a8b166

Contents?: true

Size: 259 Bytes

Versions: 6

Compression:

Stored size: 259 Bytes

Contents

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

  def extension_whitelist
    %w(jpg jpeg gif png)
  end

  #def move_to_cache
  #  true
  #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/avatar_uploader.rb
ab_admin-0.8.3 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb
ab_admin-0.8.2 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb
ab_admin-0.8.1 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb
ab_admin-0.8.0 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb
ab_admin-0.7.0 lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb