Sha256: 9175fde8af08fd5b6d1631b56f8b88edf0adc71c9a309fcc364fffe409b9c5ea

Contents?: true

Size: 408 Bytes

Versions: 40

Compression:

Stored size: 408 Bytes

Contents

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

  end

end

Version data entries

40 entries across 40 versions & 1 rubygems

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