-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly set channel and user in bootstrapped messages thanks to @madx
Fixes #32
- Loading branch information
Tony Guntharp
committed
Feb 3, 2013
1 parent
809cf7b
commit 0646509
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,12 @@ namespace :kandan do | |
if user.nil? | ||
puts "Creating default user..." | ||
user = User.new | ||
user.email = "[email protected]" | ||
user.email = "[email protected]" | ||
user.username = "admin" | ||
user.first_name = "Admin" | ||
user.last_name = "OfKandan" | ||
user.password = "kandanadmin" | ||
user.password_confirmation = "kandanadmin" | ||
user.password = "kandanappadmin" | ||
user.password_confirmation = "kandanappadmin" | ||
user.save! | ||
end | ||
|
||
|
@@ -20,20 +21,19 @@ namespace :kandan do | |
puts "Creating default channel..." | ||
channel = Channel.create :name => "Lobby" | ||
|
||
["Welcome to Kandan, the slickest chat app out there. Brought to you by the good people of CloudFuji (http://cloudfuji.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 on the mailing list.", | ||
["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.", | ||
"To get started, you can embed images or youtube clips, use the /me command (/me is in proper love with Kandan, innit!), upload files, or of course, just chat with your teammates.", | ||
"Just paste in an image url and type a subtitle http://kandan.me/images/kandan.png", | ||
"http://www.youtube.com/watch?v=Jgpty017CIw Same with youtube videos", | ||
"Just paste in an image url and type a subtitle http://kandanapp.com/images/kandanlogo.png", | ||
"http://www.youtube.com/watch?v=MvzyWk4lMc8 Same with youtube videos", | ||
"/me is in proper love with Kandan, innit!", | ||
"If you're the type of person who enjoys hacking on projects, the source to Kandan is at https://github.com/cloudfuji/kandan", | ||
"Well, that's about it. If you have any questions, concerns, or ideas, just shoot us an email [email protected]! Have fun!", | ||
"Oh, sorry, one last thing - be sure to join the mailing list at https://groups.google.com/forum/?fromgroups#!forum/cloudfuji so you know there's a new release of Kandan!" | ||
"If you're the type of person who enjoys hacking on projects, the source to Kandan is at https://github.com/kandanapp/kandan", | ||
"Well, that's about it. If you have any questions, concerns, or ideas, just shoot us an email [email protected]! Have fun!", | ||
].each do |message| | ||
a = Activity.new | ||
a.content = message | ||
a.channel_id = Channel.first | ||
a.user_id = User.first | ||
a.channel = Channel.first | ||
a.user = User.first | ||
a.action = "message" | ||
a.save! | ||
end | ||
|