diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-24 22:34:36 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-24 22:34:36 +0200 |
commit | 33f7c40f3f7d2b342dcaa839b7cd56599a573c65 (patch) | |
tree | 96bcf4f5018b5f5c91b082767129fe503c8a7ac3 /app/controllers | |
parent | e057ad975c6ced8c9565fc8329db16b1ababcef8 (diff) | |
download | gitlab-ce-33f7c40f3f7d2b342dcaa839b7cd56599a573c65.tar.gz |
use represent_concise instead of separate entity
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/deployments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/deployments_controller.rb b/app/controllers/projects/deployments_controller.rb index 79e59fc1326..c319671456d 100644 --- a/app/controllers/projects/deployments_controller.rb +++ b/app/controllers/projects/deployments_controller.rb @@ -7,7 +7,7 @@ class Projects::DeploymentsController < Projects::ApplicationController deployments = deployments.where('created_at > ?', params[:after].to_time) if params[:after]&.to_time render json: { deployments: DeploymentSerializer.new(user: @current_user, project: project) - .represent(deployments) } + .represent_concise(deployments) } end private |