diff options
Diffstat (limited to 'app/helpers/boards_helper.rb')
-rw-r--r-- | app/helpers/boards_helper.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/helpers/boards_helper.rb b/app/helpers/boards_helper.rb index 8304a83a952..275e892b2e6 100644 --- a/app/helpers/boards_helper.rb +++ b/app/helpers/boards_helper.rb @@ -37,13 +37,11 @@ module BoardsHelper end def current_board_path(board) - @current_board_path ||= begin - if board.group_board? - group_board_path(current_board_parent, board) - else - project_board_path(current_board_parent, board) - end - end + @current_board_path ||= if board.group_board? + group_board_path(current_board_parent, board) + else + project_board_path(current_board_parent, board) + end end def current_board_parent |