module ActionView::Helpers::UrlHelper

Public Instance Methods

convert_options_to_data_attributes(options, html_options) click to toggle source
# File lib/safe_target_blank/url_helper.rb, line 25
def convert_options_to_data_attributes(options, html_options)
  if html_options
    html_options = html_options.stringify_keys
    if link_to_target_blank?(html_options)
      rel = link_to_target_blank_default_rel(html_options).presence
      html_options['rel'] = rel if rel
    end
  end

  original_convert_options_to_data_attributes(options, html_options)
end
original_convert_options_to_data_attributes(options, html_options)