lib/simple_navigation/adapters/rails.rb in simple-navigation-3.0.2 vs lib/simple_navigation/adapters/rails.rb in simple-navigation-3.1.0
- old
+ new
@@ -6,9 +6,10 @@
def self.register
SimpleNavigation.set_env(rails_root, rails_env)
ActionController::Base.send(:include, SimpleNavigation::Helpers)
ActionController::Base.send(:helper_method, :render_navigation)
+ ActionController::Base.send(:helper_method, :active_navigation_item_name)
end
def initialize(context)
@controller = extract_controller_from context
@template = template_from @controller
\ No newline at end of file