Module: ActionView::Helpers::AssetTagHelper

Defined in:
lib/view_driver/image_tag_extension.rb

Instance Method Summary collapse

Instance Method Details

#image_tag_with_title(source, options = {}) ⇒ Object



4
5
6
7
# File 'lib/view_driver/image_tag_extension.rb', line 4

def image_tag_with_title(source, options = {})
  options[:alt] ||= ''
  image_tag_without_title(source, options[:alt].blank? ? options : options.merge(:title => options[:title] || options[:alt]))
end