Commit aadf9d60 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #885 from avakarev/clean-up-application_helper

Clean up application_helper.rb code
parents 765c1b27 20487500
......@@ -110,27 +110,11 @@ module ApplicationHelper
[projects, default_nav, project_nav].flatten.to_json
end
def project_layout
layout == "project"
end
def admin_layout
layout == "admin"
end
def profile_layout
layout == "profile"
end
def help_layout
controller.controller_name == "help"
end
def ldap_enable?
Devise.omniauth_providers.include?(:ldap)
end
def layout
def layout
controller.send :_layout
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment