diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-11-07 15:37:25 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-11-07 15:37:25 +0900 |
commit | 689eca0b0f35528fb4c17f74bdaa90331934e55d (patch) | |
tree | f904396eb6d7beeca39ba11907e9db1de194a859 /lib/api/deployments.rb | |
parent | d4d073c157444fcb1671b39a9c2f96086ed28f1c (diff) | |
download | gitlab-ce-add-action-to-deployments.tar.gz |
Revert "Revert add action column changes"add-action-to-deployments
This reverts commit 9c811566f85d18bc9eb4a85c6a343cf1bfa4fbd2.
Diffstat (limited to 'lib/api/deployments.rb')
-rw-r--r-- | lib/api/deployments.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/deployments.rb b/lib/api/deployments.rb index 6747e2e5005..2fb8551543a 100644 --- a/lib/api/deployments.rb +++ b/lib/api/deployments.rb @@ -24,7 +24,7 @@ module API get ':id/deployments' do authorize! :read_deployment, user_project - present paginate(user_project.deployments.order(params[:order_by] => params[:sort])), with: Entities::Deployment + present paginate(user_project.deployments.deployed.order(params[:order_by] => params[:sort])), with: Entities::Deployment end # rubocop: enable CodeReuse/ActiveRecord @@ -38,7 +38,7 @@ module API get ':id/deployments/:deployment_id' do authorize! :read_deployment, user_project - deployment = user_project.deployments.find(params[:deployment_id]) + deployment = user_project.deployments.deployed.find(params[:deployment_id]) present deployment, with: Entities::Deployment end |