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