Better design for room URLs

This commit is contained in:
Michael Ball 2020-07-17 10:03:07 -07:00
parent ae6581826d
commit 31dfd62fbd
4 changed files with 25 additions and 6 deletions

View file

@ -31,6 +31,8 @@ class Event < ApplicationRecord
belongs_to :track
belongs_to :difficulty_level
belongs_to :program
belongs_to :room
delegate :url, to: :room, allow_nil: true
accepts_nested_attributes_for :event_users, allow_destroy: true
accepts_nested_attributes_for :speakers, allow_destroy: true