Skip to content

Commit

Permalink
updated find_by method with find_by! to raise an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin-jebaraj committed Jan 9, 2025
1 parent cf35c18 commit 51f38d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/evaluation/tasks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def show; end
private

helper_method def current_evaluator
@current_evaluator ||= Support::Evaluator.find_by(support_case_id: params[:id], email: current_user.email)
@current_evaluator ||= Support::Evaluator.find_by!(support_case_id: params[:id], email: current_user.email)
end

def set_current_case
Expand Down

0 comments on commit 51f38d5

Please sign in to comment.