OSDN Git Service

Clean up application_helper.rb code
authorAndrey Vakarev <avakarev@gmail.com>
Sun, 3 Jun 2012 01:08:01 +0000 (04:08 +0300)
committerAndrey Vakarev <avakarev@gmail.com>
Sun, 3 Jun 2012 01:08:01 +0000 (04:08 +0300)
app/helpers/application_helper.rb

index 7b15513..4b0e642 100644 (file)
@@ -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