Make sure the new Conference comes with at least one EventType
This commit is contained in:
parent
4abc5fbe52
commit
9d53b19679
|
@ -2,6 +2,7 @@ module Management
|
||||||
class ConferencesController < ManagementController
|
class ConferencesController < ManagementController
|
||||||
def new
|
def new
|
||||||
@conference = Conference.new
|
@conference = Conference.new
|
||||||
|
@conference.event_types.build(name: 'Event type 1')
|
||||||
@conference.tracks.build(name: 'Track 1')
|
@conference.tracks.build(name: 'Track 1')
|
||||||
@conference.halls.build(name: 'Hall 1')
|
@conference.halls.build(name: 'Hall 1')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue