Module: Bard::Static::LinkToHelper
- Defined in:
- app/helpers/bard/static/link_to_helper.rb
Defined Under Namespace
Classes: LinkTo, LinkToCurrent, LinkToNav
Instance Method Summary collapse
-
#link_to_current(*args, &block) ⇒ Object
Don’t enable by default, because its a performance regression.
- #link_to_nav(*args, &block) ⇒ Object
Instance Method Details
#link_to_current(*args, &block) ⇒ Object
10 11 12 13 14 15 |
# File 'app/helpers/bard/static/link_to_helper.rb', line 10 def link_to_current(*args, &block) args.unshift capture(&block) if block_given? LinkToCurrent.render(self, *args) do |link| link.current_path = request.fullpath end end |