Commit 2048750029e968883b70f88a079dfe7d1456c2ae

Authored by Andrey Vakarev
1 parent cbea0af2

Clean up application_helper.rb code

Showing 1 changed file with 1 additions and 17 deletions   Show diff stats
app/helpers/application_helper.rb
... ... @@ -110,27 +110,11 @@ module ApplicationHelper
110 110 [projects, default_nav, project_nav].flatten.to_json
111 111 end
112 112  
113   - def project_layout
114   - layout == "project"
115   - end
116   -
117   - def admin_layout
118   - layout == "admin"
119   - end
120   -
121   - def profile_layout
122   - layout == "profile"
123   - end
124   -
125   - def help_layout
126   - controller.controller_name == "help"
127   - end
128   -
129 113 def ldap_enable?
130 114 Devise.omniauth_providers.include?(:ldap)
131 115 end
132 116  
133   - def layout
  117 + def layout
134 118 controller.send :_layout
135 119 end
136 120  
... ...