Fix missing arguments on current_page?
This commit is contained in:
parent
d5d5c5eb19
commit
e1c1357d9b
|
@ -9,7 +9,7 @@ module ApplicationHelper
|
||||||
|
|
||||||
classes = [
|
classes = [
|
||||||
"nav-item",
|
"nav-item",
|
||||||
current_page? ? "active" : nil,
|
current_page?(path) ? "active" : nil,
|
||||||
options[:class]
|
options[:class]
|
||||||
].compact.join(" ")
|
].compact.join(" ")
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ module ApplicationHelper
|
||||||
classes = [
|
classes = [
|
||||||
"list-group-item",
|
"list-group-item",
|
||||||
"list-group-item-action",
|
"list-group-item-action",
|
||||||
current_page? ? "active" : nil,
|
current_page?(path) ? "active" : nil,
|
||||||
options[:class]
|
options[:class]
|
||||||
].compact.join(" ")
|
].compact.join(" ")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue