Sha256: 3546a96f505eb899171ab065b1a6a93a3a9bc82ec09b233a444cdc734f402bc6

Contents?: true

Size: 409 Bytes

Versions: 25

Compression:

Stored size: 409 Bytes

Contents

module C80Estate
  class PphotoUploader < BaseFileUploader

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

    version :thumb512 do
      process :resize_to_fill => [621, 377]
    end

    version :thumb256 do
      process :resize_to_fill => [310, 188]
    end

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

  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
c80_estate-0.1.0.39 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.38 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.37 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.36 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.35 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.34 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.33 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.32 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.31 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.30 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.29 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.28 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.27 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.26 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.25 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.24 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.23 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.22 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.21 app/uploaders/c80_estate/pphoto_uploader.rb
c80_estate-0.1.0.20 app/uploaders/c80_estate/pphoto_uploader.rb