Module: Bh::UrlHelper

Includes:
ActionView::Helpers::UrlHelper
Defined in:
lib/bh/helpers/url_helper.rb

Instance Method Summary collapse

Instance Method Details

Overrides ActionView link_to to be able to add the ‘alert_link’ class to the link in case the link is inside of an alert.



9
10
11
12
# File 'lib/bh/helpers/url_helper.rb', line 9

def link_to(*args, &block)
  args = add_alert_class_to_link!(*args, &block) if @alert_link
  super *args, &block
end