Fix "nav-item" assigning class in nav_entry helper

This commit is contained in:
Andreas Nedbal 2020-04-26 14:30:23 +02:00
parent 1885343900
commit 4917ce46d3
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module ApplicationHelper
}"))}"
end
content_tag(:li, link_to(body.html_safe, path, class: "nav-link"), class: ("#{'nav-item active ' if current_page? path}#{options[:class]}"))
content_tag(:li, link_to(body.html_safe, path, class: "nav-link"), class: ("nav-item#{' active' if current_page? path} #{options[:class]}"))
end
def list_group_item(body, path, options = {})