Module: SafeAnchorUrlHelper

Includes:
ActionView::Helpers::UrlHelper
Defined in:
lib/safe_anchor/safe_anchor_url_helper.rb

Instance Method Summary collapse

Instance Method Details



7
8
9
10
11
12
# File 'lib/safe_anchor/safe_anchor_url_helper.rb', line 7

def link_to(*args, **kwargs, &block)
  anchor_tag = rails_default_link_to(*args, **kwargs, &block)
  return anchor_tag if kwargs[:keep_dirty]

  sanitize anchor_tag
end


5
# File 'lib/safe_anchor/safe_anchor_url_helper.rb', line 5

alias rails_default_link_to link_to