From e1c1357d9b4efb17e854a366ce6d286635d85f05 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 6 May 2020 14:49:35 +0200 Subject: [PATCH] Fix missing arguments on current_page? --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d1c25e24..d87d9704 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -9,7 +9,7 @@ module ApplicationHelper classes = [ "nav-item", - current_page? ? "active" : nil, + current_page?(path) ? "active" : nil, options[:class] ].compact.join(" ") @@ -37,7 +37,7 @@ module ApplicationHelper classes = [ "list-group-item", "list-group-item-action", - current_page? ? "active" : nil, + current_page?(path) ? "active" : nil, options[:class] ].compact.join(" ")