Module: HtmlAttributes::TagHelper
- Defined in:
- lib/html_attributes/rails/tag_helper.rb
Overview
:nodoc:
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
:nodoc:
10 11 12 |
# File 'lib/html_attributes/rails/tag_helper.rb', line 10 def self.included(base) #:nodoc: base.alias_method_chain :tag_options, :html_attributes end |
Instance Method Details
#tag_options_with_html_attributes(options, escape = true) ⇒ Object
:nodoc:
14 15 16 17 |
# File 'lib/html_attributes/rails/tag_helper.rb', line 14 def (, escape = true) #:nodoc: = ::Hash[.map { |key, value| [key, value.respond_to?("to_#{key}_attr") ? value.send("to_#{key}_attr") : value] }] unless .blank? (, escape) end |