Commit 5f13eb30d173e74519abc449176f0e12b1a418c1

Authored by Rodrigo Souto
1 parent dcc12e37

acts-as-having-posts: fetch rss from children

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/acts_as_having_posts.rb
... ... @@ -22,7 +22,7 @@ module ActsAsHavingPosts
22 22 end
23 23  
24 24 def feed
25   - Article.where(:parent_id => self.id).where(:type => 'RssFeed').first
  25 + children.where(:type => 'RssFeed').first
26 26 end
27 27  
28 28 def feed=(attrs)
... ...