Commit 171be5c71dc2174d17c2cd5ca3930af1038092cc
1 parent
926442b6
Exists in
master
and in
21 other branches
Revert "acts-as-having-post: fetch feed with lazy loading"
This reverts commit b22301ace52dfd7561900979a33ad07f7e195deb.
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,7 +22,7 @@ module ActsAsHavingPosts | ||
| 22 | end | 22 | end |
| 23 | 23 | ||
| 24 | def feed | 24 | def feed |
| 25 | - children.where(:type => 'RssFeed').limit(1) | 25 | + Article.where(:parent_id => self.id).where(:type => 'RssFeed').first |
| 26 | end | 26 | end |
| 27 | 27 | ||
| 28 | def feed=(attrs) | 28 | def feed=(attrs) |