Permalink
Browse files

Need to create topics and posts with ip associations always now.

  • Loading branch information...
1 parent 3e04135 commit de9a6a2fde9765862fdb18630311794aa8049a46 Ryan Bigg committed Mar 19, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/rboard/install.rb
View
@@ -73,9 +73,10 @@ def install!(login, password, email)
f = Forum.create(:title => I18n.t(:Welcome_to_rBoard), :description => I18n.t(:example_forum_description))
puts "Creating first topic..."
- t = f.topics.build(:subject => I18n.t(:Your_first_topic), :user => u)
- puts "... and first topic..."
- t.posts.build(:text => I18n.t(:Welcome_to_rBoard_post), :user => u)
+ ip = Ip.create(:ip => "127.0.0.1")
+ t = f.topics.build(:subject => I18n.t(:Your_first_topic), :user => u, :ip => ip)
+ puts "... and first post..."
+ t.posts.build(:text => I18n.t(:Welcome_to_rBoard_post), :user => u, :ip => ip)
t.save
puts "Done!"
Theme.find_by_name("blue").update_attribute("is_default", true)

0 comments on commit de9a6a2

Please sign in to comment.