lib/sinatra/assetpack/helpers.rb in sinatra-assetpack-0.1.3 vs lib/sinatra/assetpack/helpers.rb in sinatra-assetpack-0.1.4

- old
+ new

@@ -13,10 +13,12 @@ attrs = { :src => src }.merge(options) local = settings.assets.local_file_for src if local i = Image[local] - attrs[:src] = BusterHelpers.add_cache_buster(src, local) + + attrs[:src] = HtmlHelpers.get_file_uri(src, settings.assets) + if i.dimensions? attrs[:width] ||= i.width attrs[:height] ||= i.height end end