Method: Tandem::ImagesHelper#tandem_image_tag
- Defined in:
- app/helpers/tandem/images_helper.rb
#tandem_image_tag(image, options = {}, format = nil) ⇒ Object
4 5 6 7 |
# File 'app/helpers/tandem/images_helper.rb', line 4 def tandem_image_tag(image, = {}, format = nil) = {style: "height:#{Tandem::Image::THUMB_HEIGHT}px;width:#{Tandem::Image::THUMB_WIDTH}px;border:5px solid #ccc;"}.merge() if format == :thumb image_tag image.resource.url(format), end |