Sha256: 64512d3ee917820e061beb235e094950c9ea35d04f88babd9eadc2386cc06522
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
module Navigator module ActionView def self.included base base.send :include, InstanceMethods end module InstanceMethods def navigation tag = "ul", attributes = {}, activator = navigation_activator, &block raw Menu.new(self, tag, attributes, 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
navigator-0.8.0 | lib/navigator/action_view/instance_methods.rb |
navigator-0.7.0 | lib/navigator/action_view/instance_methods.rb |