Skip to content

Commit

Permalink
Need to create topics and posts with ip associations always now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Bigg committed Mar 19, 2010
1 parent 3e04135 commit de9a6a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/rboard/install.rb
Expand Up @@ -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)
Expand Down

0 comments on commit de9a6a2

Please sign in to comment.