summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-02-27 17:23:25 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-03-13 20:33:35 +0800
commit2de0bcf8007d9e92c9c691c1ec7664e5331300b3 (patch)
treeecd8b0ced08866edf4f50444dc0968029727382d /app/controllers
parent7d5ee4181a63318dd3a981fef9c12ce93e732fdb (diff)
downloadgitlab-ce-2de0bcf8007d9e92c9c691c1ec7664e5331300b3.tar.gz
Remove redirecting to last visited board
Move this to EE-only. It isn't useful here since there's only one board
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/concerns/boards_actions.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/controllers/concerns/boards_actions.rb b/app/controllers/concerns/boards_actions.rb
index 2cf0ba7c086..ed7ea2f0e04 100644
--- a/app/controllers/concerns/boards_actions.rb
+++ b/app/controllers/concerns/boards_actions.rb
@@ -7,7 +7,6 @@ module BoardsActions
included do
include BoardsResponses
- before_action :redirect_to_recent_board, only: :index
before_action :boards, only: :index
before_action :board, only: :show
end
@@ -25,21 +24,6 @@ module BoardsActions
private
- def redirect_to_recent_board
- return if request.format.json?
-
- if recently_visited = Boards::Visits::LatestService.new(board_parent, current_user).execute
- board_path = case board_parent
- when Project
- namespace_project_board_path(id: recently_visited.board_id)
- when Group
- group_board_path(id: recently_visited.board_id)
- end
-
- redirect_to board_path
- end
- end
-
def boards
strong_memoize(:boards) do
Boards::ListService.new(parent, current_user).execute