Commit c40d3969564d30652a5664994588b29bd1e7263a

Authored by Daniela Feitosa
1 parent f44715cb

Creating activities to articles from feed

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/models/external_feed.rb
... ... @@ -14,6 +14,7 @@ class ExternalFeed < ActiveRecord::Base
14 14 article = TinyMceArticle.new(:name => title, :profile => blog.profile, :body => content, :published_at => date, :source => link, :profile => blog.profile, :parent => blog)
15 15 unless blog.children.exists?(:slug => article.slug)
16 16 article.save!
  17 + article.delay.create_activity
17 18 end
18 19 end
19 20  
... ...