Module: ActionView::Helpers::TagHelper

Extended by:
ActiveSupport::Concern
Includes:
CaptureHelper, OutputSafetyHelper
Included in:
ActionView::Helpers, AssetTagHelper
Defined in:
lib/amelia/action_view/helpers/tag_helper.rb

Instance Method Summary collapse

Instance Method Details

#content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, translate = true, &block) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/amelia/action_view/helpers/tag_helper.rb', line 11

def (name, content_or_options_with_block = nil, options = nil, escape = true, translate = true , &block)
  if block_given?
    options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash)
    (name, capture(&block), options, escape)
  else
    (name, content_or_options_with_block, options, escape, translate)
  end
end