Sha256: 6c19ca80edc281cb93965479af225d44287cde34ebfdbeb0289b18b7d5e222ff

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

module RailsGallery
  module ViewHelper
    module Responsive
      def responsive_gallery_image photo
        image_tag photo.thumb, :"data-large" => "/assets/#{photo.path}", :alt => photo.alt, :"data-description" => photo.title
      end      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-gallery-0.2.1 lib/rails-gallery/view_helper/responsive.rb
rails-gallery-0.2.0 lib/rails-gallery/view_helper/responsive.rb