Use find instead of find_by!

This commit is contained in:
Shinya Maeda 2017-12-05 18:02:15 +09:00
parent ed0f6b3ab1
commit 105843a079
1 changed files with 1 additions and 1 deletions

View File

@ -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