Sha256: fc1b8d48d3d891ae13dcc5d19f04fc44d9968a33bdc3408e5fd2a2995be611c5

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

module Tandem
  module ImagesHelper

    def tandem_image_tag(image, options = {}, format = nil)
      options = {style: "height:#{Tandem::Image::THUMB_HEIGHT}px;width:#{Tandem::Image::THUMB_WIDTH}px;border:5px solid #ccc;"}.merge(options) if format == :thumb
      image_tag image.resource.url(format), options
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tandem-0.2.5 app/helpers/tandem/images_helper.rb
tandem-0.2.4 app/helpers/tandem/images_helper.rb
tandem-0.2.3 app/helpers/tandem/images_helper.rb
tandem-0.2.2 app/helpers/tandem/images_helper.rb
tandem-0.2.1 app/helpers/tandem/images_helper.rb
tandem-0.2.0 app/helpers/tandem/images_helper.rb
tandem-0.2.0.rc app/helpers/tandem/images_helper.rb