Sha256: a4d11265b182f68bc107fbc413864d3e37389c2d578e54caa7a4b1d6534a331f
Contents?: true
Size: 290 Bytes
Versions: 2
Compression:
Stored size: 290 Bytes
Contents
module Pugin module ViewHelpers def navigation_link(route_symbol:, route_args:, letter:) url = send(route_symbol, *route_args, letter) unless route_args.empty? url = send(route_symbol, letter) unless url return link_to(letter, url, data: { 'atoz-see': 'true' }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pugin-0.8.1 | lib/pugin/view_helpers.rb |
pugin-0.8.0 | lib/pugin/view_helpers.rb |