feat(book after start): prepare to rework event to allow ticket sell

after start
This commit is contained in:
kbe
2025-09-15 19:07:19 +02:00
parent f0d32bf3f1
commit ee43996a77
2 changed files with 12 additions and 2 deletions

View File

@@ -96,6 +96,12 @@ class Event < ApplicationRecord
Time.current >= end_time
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?
!!allow_booking_during_event
end
private
# Determine if we should perform server-side geocoding