diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 22:40:35 +0200 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-15 22:40:35 +0200 |
| commit | e21deaee8ee0d453bf899c1b3fb46262cc60dab9 (patch) | |
| tree | 59b04c9cb1c8ce6c510a78ee787fb31817619835 /app/controllers/root_controller.rb | |
| parent | 7e2dbcbe0915cfd75e91d78e943c153f284df37d (diff) | |
| parent | 0ad669bb5ba08d012d3daa50b51a3a6b069e3e83 (diff) | |
| download | gitlab-ce-e21deaee8ee0d453bf899c1b3fb46262cc60dab9.tar.gz | |
Merge remote-tracking branch 'origin/master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
# Conflicts:
# Gemfile.lock
Diffstat (limited to 'app/controllers/root_controller.rb')
| -rw-r--r-- | app/controllers/root_controller.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index fdfe00dc135..54171ff67c5 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -6,10 +6,10 @@ # # For users who haven't customized the setting, we simply delegate to # `DashboardController#show`, which is the default. -class RootController < DashboardController - before_action :redirect_to_custom_dashboard, only: [:show] +class RootController < Dashboard::ProjectsController + before_action :redirect_to_custom_dashboard, only: [:index] - def show + def index super end @@ -20,6 +20,7 @@ class RootController < DashboardController case current_user.dashboard when 'stars' + flash.keep redirect_to starred_dashboard_projects_path else return |
