app/models/image.rb
# rubocop:disable Style/StringHashKeys
# used in ImageHelper#image_thumb_tag
# asthetic scaling of very narrow images in thumbnails
# @return [Hash]
disable Style/StringHashKeys
used in ImageHelper#image_thumb_tag
asthetic scaling of very narrow images in thumbnails
disable Style / StringHashKeys used in ImageHelper#image_thumb_tag asthetic scaling of very narrow images in thumbnails
def thumb_scaler
    a = self.hw_ratio
    if a < 0.6
      { 'width' => 200, 'height' => 200 * a}
    else
      {}
    end
  end
def thumb_scaler a = self . hw_ratio if a < 0.6 { 'width' => 200 , 'height' => 200 * a } else { } end end
rubocop:disable Style/StringHashKeys
used in ImageHelper#image_thumb_tag
asthetic scaling of very narrow images in thumbnails
rubocop : disable Style / StringHashKeys used in ImageHelper#image_thumb_tag asthetic scaling of very narrow images in thumbnails
None
Hash