Commit aadf9d607e03340c4ab2a1298d68e14b03ec591e

Authored by Dmitriy Zaporozhets
2 parents 765c1b27 20487500

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

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  
... ...