diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-12 19:46:06 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-12 19:46:06 +0100 |
commit | 1aa477ac2f0e9195497899691bb5cc16a7034c01 (patch) | |
tree | c331188d6955cbdd12e78bc6ccdb2329b5dddf67 /app/helpers | |
parent | aab9f57e369c492bad03bcf15411394897314b4d (diff) |
Customized more doorkeeper views, only logged in users can create oauth apps
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 |