Commit 105843a0 authored by Shinya Maeda's avatar Shinya Maeda

Use find instead of find_by!

parent ed0f6b3a
...@@ -59,7 +59,7 @@ class Projects::ClustersController < Projects::ApplicationController ...@@ -59,7 +59,7 @@ class Projects::ClustersController < Projects::ApplicationController
private private
def cluster def cluster
@cluster ||= project.clusters.find_by!(id: params[:id]) @cluster ||= project.clusters.find(params[:id])
.present(current_user: current_user) .present(current_user: current_user)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment