Sha256: e3cd93eb9736f46fb9d0942660a888bd67e41099ecf574e771bb98c11b48c614

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

module RailsGallery
  module ViewHelper
    module Slideshow
      def slidegal_image photo, options = {}
        options.merge! alt: photo.path
        image_tag photo.thumb, options
      end

      def slidegal_imageset photo, options = {}
        options.merge! alt: photo.path
        options.merge! :srcset => photo.srcset if photo.srcset?
        imageset_tag photo.thumb, options
      end

      alias_method :slideshow_gallery_image, :slidegal_image
      alias_method :slideshow_gallery_imageset, :slidegal_imageset
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-gallery-0.3.3 lib/rails-gallery/view_helper/slideshow.rb
rails-gallery-0.3.2 lib/rails-gallery/view_helper/slideshow.rb
rails-gallery-0.3.1 lib/rails-gallery/view_helper/slideshow.rb
rails-gallery-0.3.0 lib/rails-gallery/view_helper/slideshow.rb