From 2048750029e968883b70f88a079dfe7d1456c2ae Mon Sep 17 00:00:00 2001 From: Andrey Vakarev <avakarev@gmail.com> Date: Sun, 3 Jun 2012 04:08:01 +0300 Subject: [PATCH] Clean up application_helper.rb code --- app/helpers/application_helper.rb | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7b15513a25b..4b0e642cb11 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 -- 2.30.9