lib/sprockets/helpers.rb in sprockets-helpers-0.6.0 vs lib/sprockets/helpers.rb in sprockets-helpers-0.6.1

- old
+ new

@@ -85,10 +85,11 @@ # Return fast if the URI is absolute return source if uri.absolute? # Append extension if necessary - if options[:ext] && File.extname(uri.path).empty? + source_ext = File.extname(source) + if options[:ext] && source_ext != ".#{options[:ext]}" uri.path << ".#{options[:ext]}" end # If a manifest is present, try to grab the path from the manifest first if Helpers.manifest && Helpers.manifest.assets[uri.path]