fix : ticket order new

This commit is contained in:
kbe
2025-09-17 16:34:41 +02:00
parent 8103629370
commit 70aa9e9e2a
13 changed files with 96 additions and 90 deletions

View File

@@ -134,6 +134,11 @@ class Event < ApplicationRecord
Time.current >= end_time
end
# Return the event date (start time date)
def date
start_time&.to_date
end
# Check if booking is allowed during the event
# This is a simple attribute reader that defaults to false if nil
def allow_booking_during_event?