From b7518fe98f9ddc3560eed6822003a911bcbb6ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Thu, 3 Sep 2015 16:33:13 +0200 Subject: [PATCH] updates dev_seeds.rb --- db/dev_seeds.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index bbd42d55e..58a1da128 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -85,8 +85,8 @@ puts "Commenting Comments" comment = Comment.create!(user: author, commentable_id: parent.commentable_id, commentable_type: parent.commentable_type, - body: Faker::Lorem.sentence) - comment.move_to_child_of(parent) + body: Faker::Lorem.sentence, + parent: parent) end