Fix missing arguments on current_page?

This commit is contained in:
Andreas Nedbal 2020-05-06 14:49:35 +02:00
parent d5d5c5eb19
commit e1c1357d9b
1 changed files with 2 additions and 2 deletions

View File

@ -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(" ")