diff --git a/lib/acts_as_having_posts.rb b/lib/acts_as_having_posts.rb index 1dff587..68ef4a7 100644 --- a/lib/acts_as_having_posts.rb +++ b/lib/acts_as_having_posts.rb @@ -22,7 +22,7 @@ module ActsAsHavingPosts end def feed - self.children.find(:first, :conditions => {:type => 'RssFeed'}) + Article.where(:parent_id => self.id).where(:type => 'RssFeed').first end def feed=(attrs) -- libgit2 0.21.2