From c40d3969564d30652a5664994588b29bd1e7263a Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Tue, 22 May 2012 12:09:01 -0300 Subject: [PATCH] Creating activities to articles from feed --- app/models/external_feed.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/models/external_feed.rb b/app/models/external_feed.rb index 6513346..e70d9f2 100644 --- a/app/models/external_feed.rb +++ b/app/models/external_feed.rb @@ -14,6 +14,7 @@ class ExternalFeed < ActiveRecord::Base article = TinyMceArticle.new(:name => title, :profile => blog.profile, :body => content, :published_at => date, :source => link, :profile => blog.profile, :parent => blog) unless blog.children.exists?(:slug => article.slug) article.save! + article.delay.create_activity end end -- libgit2 0.21.2