Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
use find instead of find_by (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler authored Jul 17, 2024
1 parent a4593ca commit 0cf3287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/internal_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def registrations_for_user

def show_registration
attendee_id = params.require(:attendee_id)
registration = Registration.find_by(id: attendee_id)
registration = Registration.find(attendee_id)
render json: registration
end
end

0 comments on commit 0cf3287

Please sign in to comment.