Skip to content

Commit

Permalink
Handle missing refer in ticket scanning controller
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jul 17, 2023
1 parent 79e42bd commit 839adb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/ticket_scannings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def create
authorize! :create, @ticket_scanning
@ticket_scanning.save
dest_path = conferences_path
if request.referer.match?(%r{admin/conferences})
if request.referer&.match?(%r{admin/conferences})
dest_path = admin_conference_physical_tickets_path(@conference)
end
redirect_to dest_path,
Expand Down

0 comments on commit 839adb9

Please sign in to comment.