lib/hanami/assets/helpers.rb in hanami-assets-1.0.0 vs lib/hanami/assets/helpers.rb in hanami-assets-1.1.0.beta1

- old
+ new

@@ -330,10 +330,10 @@ # <%= image 'logo.png' %> # # # <img src="https://assets.bookshelf.org/assets/logo-28a6b886de2372ee3922fcaf3f78f2d8.png" alt="Logo"> def image(source, options = {}) options[:src] = asset_path(source) - options[:alt] ||= Utils::String.new(::File.basename(source, WILDCARD_EXT)).titleize + options[:alt] ||= Utils::String.titleize(::File.basename(source, WILDCARD_EXT)) html.img(options) end # Generate <tt>link</tt> tag application favicon.