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