Make sure the new Conference comes with at least one EventType

This commit is contained in:
Petko Bordjukov 2015-07-19 20:15:12 +03:00
parent 4abc5fbe52
commit 9d53b19679
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ module Management
class ConferencesController < ManagementController
def new
@conference = Conference.new
@conference.event_types.build(name: 'Event type 1')
@conference.tracks.build(name: 'Track 1')
@conference.halls.build(name: 'Hall 1')
end