Sha256: 685a8614c833c4b4dddebd0b1deb001314fdf3444fff83e65032dab9a18db7df

Contents?: true

Size: 404 Bytes

Versions: 27

Compression:

Stored size: 404 Bytes

Contents

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

  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

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