feat(event available/sold out): Promoter can mark event as sold out or available

On the event page, promoter can choose to mark the event as "sold out" using the status field or as "published". Only published event can be marked as sold out if promoter thinks he cannot handle all the people available.
This commit is contained in:
kbe
2025-09-16 17:15:09 +02:00
parent 329ba89eaa
commit 5279ebe1a4
4 changed files with 29 additions and 6 deletions

View File

@@ -55,7 +55,6 @@ class Event < ApplicationRecord
# Scope for published events ordered by start time
scope :upcoming, -> { published.where("start_time >= ?", Time.current).order(start_time: :asc) }
# === Instance Methods ===
# Check if coordinates were successfully geocoded or are fallback coordinates