Better design for room URLs
This commit is contained in:
parent
ae6581826d
commit
31dfd62fbd
4 changed files with 25 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue