Sha256: bc781c9cab478081f89b788103d5325250a92c4574d566f4bde9aba74c7b304f

Contents?: true

Size: 411 Bytes

Versions: 15

Compression:

Stored size: 411 Bytes

Contents

module C80Estate
  class PphotoUploader < 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/properties/#{model.id}"
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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