Sha256: e9ee978f6335e3f9e96ff2cdf51a2a2c9774ce1dee55041f9b6c675c93f3619d

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

module RailsGallery
  module ViewHelper
    module Galleria
      def galleria_gallery_image photo
        content_tag :a, href: "/assets/#{photo.path}" do
          image_tag photo.path, :"data-title" => photo.title, :"data-description" => photo.description
        end
      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/galleria.rb
rails-gallery-0.2.0 lib/rails-gallery/view_helper/galleria.rb