lib/simple_navigation/item.rb in simple-navigation-2.7.0 vs lib/simple_navigation/item.rb in simple-navigation-2.7.1

- old
+ new

@@ -64,10 +64,10 @@ # Returns true if the item's url matches the request's current url. def selected_by_url? if highlights_on raise ArgumentError, ':highlights_on must be a regexp' unless highlights_on.instance_of?(Regexp) - SimpleNavigation.template.request.request_uri =~ highlights_on + SimpleNavigation.request_uri =~ highlights_on elsif auto_highlight? !!(root_path_match? || (SimpleNavigation.template && SimpleNavigation.template.current_page?(url))) else false end \ No newline at end of file