lib/scavenger/view_helpers.rb in scavenger-0.2.0 vs lib/scavenger/view_helpers.rb in scavenger-0.2.1
- old
+ new
@@ -8,10 +8,10 @@
content_tag :svg, compressor.compress_dir.html_safe, style: "display:none;"
end
def svg(ref, options = {})
options[:class] = "#{Scavenger::Config.class_prefix}#{ref}" if options[:class].nil?
- content_tag :svg, "<use xlink:href=\"##{ref}\"/>".html_safe, options
+ content_tag :svg, "<use xlink:href=\"##{Scavenger::Config.id_prefix}#{ref}\"/>".html_safe, options
end
def scavenger_sprite_path
asset_path File.basename(Scavenger::Config.sprite_path)
end