diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-08 16:49:20 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-08 16:49:20 +0300 |
commit | 5d785457db3017a17722314a52433543dd925164 (patch) | |
tree | a030699b752fcd1f161118be70a9df0f625fa0ef /app/controllers/root_controller.rb | |
parent | 260fcd45209b59ace6b3fd6dcca6c32c2c75a8f1 (diff) |
Clean up overlap between dashboard and explore.
- Split up SnippetsController into separate dashboard and explore sections.
- Use consistent page titles, header titles and sidebars between dashboard and explore sections when signed in or not.
Diffstat (limited to 'app/controllers/root_controller.rb')
-rw-r--r-- | app/controllers/root_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index fdfe00dc135..a3aa86de5b4 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 +class RootController < Dashboard::ProjectsController before_action :redirect_to_custom_dashboard, only: [:show] - 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 |