Skip to content

Commit

Permalink
Use #create! to ensure channel creation fails noisily if it doesn't v…
Browse files Browse the repository at this point in the history
…alidate correctly; ensure the primary channel is assigned to the primary user.
  • Loading branch information
mjtko committed Mar 19, 2013
1 parent 4338246 commit 83de39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/kandan.rake
Expand Up @@ -45,7 +45,7 @@ namespace :kandan do

if channel.nil?
puts "Creating default channel..."
channel = Channel.create :name => "Lobby"
channel = Channel.create! name: 'Lobby', user: user

["Welcome to Kandan, the slickest chat app out there. Brought to you by the good people of KandanApp (http://kandanapp.com) and friends",
"We think you'll really like Kandan, but if there's anything you would like to see, Kandan is fully open source, so you can dive into it or make suggestions.",
Expand Down

0 comments on commit 83de39a

Please sign in to comment.