fix : ticket order new
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user