diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-06 14:59:50 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-06 14:59:50 +0300 |
commit | e7b4eade0d69a70400a8d18ec72218c7b0bf1517 (patch) | |
tree | ee25ce14951b9532366c95d9d2c17dd4dddf767f /app/controllers | |
parent | a980a4f63856af0b4edc54b2457eeb80321e4f87 (diff) |
moved creating backlog list into list service
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/boards/lists_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/boards/lists_controller.rb b/app/controllers/projects/boards/lists_controller.rb index fbfabd86575..ad53bb749a0 100644 --- a/app/controllers/projects/boards/lists_controller.rb +++ b/app/controllers/projects/boards/lists_controller.rb @@ -5,9 +5,9 @@ module Projects before_action :authorize_read_list!, only: [:index] def index - board.lists.create(list_type: :backlog) unless board.lists.backlog.any? + lists = ::Boards::Lists::ListService.new(project, current_user).execute(board) - render json: serialize_as_json(board.lists) + render json: serialize_as_json(lists) end def create |