feat: Display ticket based on `qr_code` field

- Previously ticket was displayed using id which is too easy to find
- Now the URL takes ``qr_code`` field as parameters
This commit is contained in:
kbe
2025-09-06 20:33:42 +02:00
parent ce0752bbda
commit 213a11e731
4 changed files with 12 additions and 15 deletions

View File

@@ -70,7 +70,6 @@ class Ticket < ApplicationRecord
self.qr_code = "#{id || 'temp'}-#{Time.current.to_i}-#{SecureRandom.hex(4)}"
end
def draft?
status == "draft"
end