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, = {}) [:alt] ||= '' image_tag_without_title(source, [:alt].blank? ? : .merge(:title => [:title] || [:alt])) end |