Sha256: 27bc56b97cb482a8386fd684669ea61a135fa7d87a33690084faa332a9d68aef

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 Bytes

Contents

module C80Catoffers
  class Ophoto < ActiveRecord::Base

    belongs_to :offer
    mount_uploader :image, OphotoUploader

    # выдать картинку указанного размера
    def image_thumb(thumb_size)
      res = ''
      if image.present?
        res = image.send("#{thumb_size}")
      end
    end


  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
c80_catoffers-0.1.0.8 app/models/c80_catoffers/ophoto.rb
c80_catoffers-0.1.0.7 app/models/c80_catoffers/ophoto.rb
c80_catoffers-0.1.0.6 app/models/c80_catoffers/ophoto.rb
c80_catoffers-0.1.0.5 app/models/c80_catoffers/ophoto.rb
c80_catoffers-0.1.0.4 app/models/c80_catoffers/ophoto.rb
c80_catoffers-0.1.0.3 app/models/c80_catoffers/ophoto.rb