lib/rails-gallery/view_helper/slideshow.rb in rails-gallery-0.2.1 vs lib/rails-gallery/view_helper/slideshow.rb in rails-gallery-0.3.0

- old
+ new

@@ -1,9 +1,19 @@ module RailsGallery module ViewHelper module Slideshow - def slideshow_gallery_image photo - image_tag photo.thumb, alt: "/assets/#{photo.path}" + 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