Sha256: 1f7d6132661d2cd56230b0b2c9807ddda27922f956aaa151f8334a055907870e

Contents?: true

Size: 406 Bytes

Versions: 13

Compression:

Stored size: 406 Bytes

Contents

module C80Estate
  class AphotoUploader < BaseFileUploader

    # ограничение оригинальной картинки
    process :resize_to_limit => [1024, 1024]

    version :thumb512 do
      process :resize_to_limit => [512, 512]
    end

    version :thumb256 do
      process :resize_to_limit => [256, 256]
    end

    def store_dir
      "uploads/areas/#{model.id}"
    end

  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
c80_estate-0.1.0.12 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.11 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.10 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.9 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.8 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.7 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.6 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.5 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.4 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.3 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.2 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0.1 app/uploaders/c80_estate/aphoto_uploader.rb
c80_estate-0.1.0 app/uploaders/c80_estate/aphoto_uploader.rb