diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 97a7b2d..498b8ed 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -25,4 +25,8 @@ module ApplicationHelper def admin? controller.class.name.split("::").first=="Admin" end + + def profile? + controller.class.name.split("::").first=="Profile" + end end diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 517b0c9..1a38a4c 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -4,7 +4,7 @@