From 5f13eb30d173e74519abc449176f0e12b1a418c1 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 25 Feb 2015 16:05:05 -0300 Subject: [PATCH] acts-as-having-posts: fetch rss from children --- lib/acts_as_having_posts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acts_as_having_posts.rb b/lib/acts_as_having_posts.rb index 68ef4a7..8755b55 100644 --- a/lib/acts_as_having_posts.rb +++ b/lib/acts_as_having_posts.rb @@ -22,7 +22,7 @@ module ActsAsHavingPosts end def feed - Article.where(:parent_id => self.id).where(:type => 'RssFeed').first + children.where(:type => 'RssFeed').first end def feed=(attrs) -- libgit2 0.21.2