Ensure all Serializers receive current_user
instead user
This commit is contained in:
parent
566ee14516
commit
9d08dddfdb
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class Projects::DeploymentsController < Projects::ApplicationController
|
|||
deployments = environment.deployments.reorder(created_at: :desc)
|
||||
deployments = deployments.where('created_at > ?', params[:after].to_time) if params[:after]&.to_time
|
||||
|
||||
render json: { deployments: DeploymentSerializer.new(user: @current_user, project: project)
|
||||
render json: { deployments: DeploymentSerializer.new(current_user: @current_user, project: project)
|
||||
.represent_concise(deployments) }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue