Sha256: c7a6ff5a459a16d98f1da3674ef8f3cf14cbb55ba7fd950d59213507161f444d
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
module Navigator # Navigation helper methods for the view layer. module NavigationHelper def navigation tag = "ul", attributes: {}, activator: navigation_activator, &block raw Navigator::Menu.new(self, tag: tag, attributes: attributes, activator: activator, &block).render end module_function def current_path request.env["PATH_INFO"] end def navigation_activator Navigator::TagActivator.new search_value: current_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
navigator-1.4.0 | app/helpers/navigator/navigation_helper.rb |