diff options
Diffstat (limited to 'app/controllers/groups/boards_controller.rb')
-rw-r--r-- | app/controllers/groups/boards_controller.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/controllers/groups/boards_controller.rb b/app/controllers/groups/boards_controller.rb index e1ba86220c7..6bb807be1c4 100644 --- a/app/controllers/groups/boards_controller.rb +++ b/app/controllers/groups/boards_controller.rb @@ -20,16 +20,14 @@ class Groups::BoardsController < Groups::ApplicationController private def board_finder - strong_memoize :board_finder do - Boards::BoardsFinder.new(parent, current_user, board_id: params[:id]) - end + Boards::BoardsFinder.new(parent, current_user, board_id: params[:id]) end + strong_memoize_attr :board_finder def board_create_service - strong_memoize :board_create_service do - Boards::CreateService.new(parent, current_user) - end + Boards::CreateService.new(parent, current_user) end + strong_memoize_attr :board_create_service def authorize_read_board! access_denied! unless can?(current_user, :read_issue_board, group) |