Skip to content

Commit acd01c0

Browse files
committed
Bring find_by back
1 parent e4e472d commit acd01c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/api/v2/plans_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class PlansController < BaseApiController # rubocop:todo Style/Documentation
1010
def show
1111
raise Pundit::NotAuthorizedError unless @scopes.include?('read')
1212

13-
@plan = Plan.includes(roles: :user).find(params[:id])
13+
@plan = Plan.includes(roles: :user).find_by(id: params[:id])
1414

1515
raise Pundit::NotAuthorizedError unless @plan.present?
1616

0 commit comments

Comments
 (0)