diff options
author | karen Carias <karen@gitlab.com> | 2015-09-30 13:33:51 -0700 |
---|---|---|
committer | karen Carias <karen@gitlab.com> | 2015-09-30 13:33:51 -0700 |
commit | 126dd008e110dce5dfe7d1d076bc57f33250ee7b (patch) | |
tree | 4ce96f2fd7e50faff65df7b556153c08d16a888c /app/controllers/snippets_controller.rb | |
parent | 6a1d695f861e4c5251a2333c673f78705b34891f (diff) | |
parent | 54452412f765d9e6e6166e105db9adbc7553aec2 (diff) | |
download | gitlab-ce-126dd008e110dce5dfe7d1d076bc57f33250ee7b.tar.gz |
solved conflict
Diffstat (limited to 'app/controllers/snippets_controller.rb')
-rw-r--r-- | app/controllers/snippets_controller.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/snippets_controller.rb b/app/controllers/snippets_controller.rb index 8e7e45c781f..9f9f9a92f11 100644 --- a/app/controllers/snippets_controller.rb +++ b/app/controllers/snippets_controller.rb @@ -24,13 +24,9 @@ class SnippetsController < ApplicationController scope: params[:scope] }). page(params[:page]).per(PER_PAGE) - if @user == current_user - render 'current_user_index' - else - render 'user_index' - end + render 'index' else - @snippets = SnippetsFinder.new.execute(current_user, filter: :all).page(params[:page]).per(PER_PAGE) + redirect_to(current_user ? dashboard_snippets_path : explore_snippets_path) end end |