lib/classy_assets.rb in classy_assets-0.7.0 vs lib/classy_assets.rb in classy_assets-0.7.1

- old
+ new

@@ -47,10 +47,10 @@ def self.asset_tag_from(sources, ext) sources = [sources] unless sources.is_a? Array sources.map do |source| source = "#{source}.#{ext}" unless source =~ /\.#{ext}$/ - asset_url = (source =~ /\/|http/) ? source : asset_url_for(source) + asset_url = (source =~ /^\/|http/) ? source : asset_url_for(source) yield(asset_url) end.join('') end private