Module: ExternalLinkHelper

Defined in:
app/helpers/external_link_helper.rb

Instance Method Summary collapse

Instance Method Details


4
5
6
7
8
# File 'app/helpers/external_link_helper.rb', line 4

def external_link(body, url, options = {})
  link_to url, { target: '_blank', rel: 'noopener noreferrer' }.merge(options) do
    "#{body} #{icon('external-link')}".html_safe
  end
end