lib/carrierwave-picture/picture_helper.rb in carrierwave-picture-0.2.1 vs lib/carrierwave-picture/picture_helper.rb in carrierwave-picture-0.2.2
- old
+ new
@@ -1,6 +1,6 @@
module PictureHelper
- def picture_tag(path, options = {})
+ def self.picture_tag(path, options = {})
content_tag(:picture, options) do
concat content_tag :source,
nil,
srcset: "#{path}.webp",