diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-01 11:39:11 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-01 11:39:16 +0300 |
commit | 92fd3ccee05acdfd5e498734ed287458a8dd21a3 (patch) | |
tree | a794a8017636ce7f50a7f4ef4201395894a5451e /app/controllers/dashboard/application_controller.rb | |
parent | ae09c2a6db0d15caedc080c319add147c79fd02a (diff) |
Add helpers for header title and sidebar, and move setting those from controllers to layouts.
Diffstat (limited to 'app/controllers/dashboard/application_controller.rb')
-rw-r--r-- | app/controllers/dashboard/application_controller.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/controllers/dashboard/application_controller.rb b/app/controllers/dashboard/application_controller.rb index 0a0af3d4ce2..962ea38d6c9 100644 --- a/app/controllers/dashboard/application_controller.rb +++ b/app/controllers/dashboard/application_controller.rb @@ -1,11 +1,3 @@ class Dashboard::ApplicationController < ApplicationController - before_action :set_title - - private - - def set_title - @title = "Dashboard" - @title_url = root_path - @sidebar = "dashboard" - end + layout 'dashboard' end |