Sha256: 59078c14d982996cf722b74b1e814d02b35642c3ddd76025256f63a5b4f35375

Contents?: true

Size: 385 Bytes

Versions: 37

Compression:

Stored size: 385 Bytes

Contents

class ProfileImageUploader < ImageUploader
	
  def store_dir
    "uploads/profile_images/#{model.id}"
  end

	version :large do
    process :resize_to_fill => [400, 400]
  end

  version :medium do
    process :resize_to_fill => [200, 200]
  end

  version :small do
    process :resize_to_fill => [100, 100]
  end

  version :tiny do
    process :resize_to_fill => [50, 50]
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
kuppayam-0.2.12.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.11.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.10.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.9.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.8.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.7.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.6.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.5.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.4.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.3.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.2.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.1.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.2.0.pre.materialize app/uploaders/profile_image_uploader.rb
kuppayam-0.1.39 app/uploaders/profile_image_uploader.rb
kuppayam-0.1.38 app/uploaders/profile_image_uploader.rb
kuppayam-0.1.37 app/uploaders/profile_image_uploader.rb
kuppayam-0.1.36 app/uploaders/profile_image_uploader.rb
kuppayam-0.1.35 app/uploaders/profile_image_uploader.rb
kuppayam-0.1.34 app/uploaders/profile_image_uploader.rb
kuppayam-0.1.33 app/uploaders/profile_image_uploader.rb