diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e683d9f51..18aec6dbe 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -11,4 +11,8 @@ module ApplicationHelper def local_id?(id) id.start_with?("tag:#{Rails.configuration.x.local_domain}") end + + def active_nav_class(path) + current_page?(path) ? 'active' : '' + end end |