lib/simple_navigation/adapters/rails.rb in simple-navigation-4.0.1 vs lib/simple_navigation/adapters/rails.rb in simple-navigation-4.0.2

- old
+ new

@@ -36,10 +36,10 @@ controller || fail('no context set for evaluation the config file') end def current_page?(url) - template && template.current_page?(url) + url && template && template.current_page?(url) end def link_to(name, url, options = {}) template && template.link_to(link_title(name), url, options) end