Started inital migration to rails 3.2

This commit is contained in:
2013-01-19 01:14:55 -05:00
parent 64aff15deb
commit a9a4cd892f
98 changed files with 968 additions and 363 deletions

View File

@@ -28,7 +28,7 @@ class Topic < ActiveRecord::Base
private
def create_initial_post
returning self.posts.build(:body => self.body) do |post|
self.posts.build(:body => self.body).tap do |post|
post.forum = self.forum
post.user = self.user
post.save