Sha256: 53408097d06a716f0c1b7c014d77b0ea13a8a95ee0e0ecd38176c15fce0889bc

Contents?: true

Size: 495 Bytes

Versions: 36

Compression:

Stored size: 495 Bytes

Contents

module C80Estate
  class PlogoUploader < 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

    version :thumb128 do
      process :resize_to_limit => [128, 128]
    end

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

  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

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