Sha256: 095efbe3b2732db2adc41116c4ca0a085304a80067f6df35d32b450ab9007343
Contents?: true
Size: 323 Bytes
Versions: 10
Compression:
Stored size: 323 Bytes
Contents
module Tenon module ActiveLinkToHelper def active_link_to(name = nil, options = {}, html_options = nil, &block) options[:class] = '' unless options[:class].present? options[:class] += ' --is-active' if name == request.original_fullpath link_to(name, options, html_options, &block) end end end
Version data entries
10 entries across 10 versions & 1 rubygems