Use find instead of find_by!
This commit is contained in:
parent
ed0f6b3ab1
commit
105843a079
|
|
@ -59,7 +59,7 @@ class Projects::ClustersController < Projects::ApplicationController
|
|||
private
|
||||
|
||||
def cluster
|
||||
@cluster ||= project.clusters.find_by!(id: params[:id])
|
||||
@cluster ||= project.clusters.find(params[:id])
|
||||
.present(current_user: current_user)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue