noosfero | acts-as-having-posts: fetch rss from children
Rodrigo Souto
gitlab at gitlab.com
Wed Feb 25 16:05:14 BRT 2015
Rodrigo Souto pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/5f13eb30d173e74519abc449176f0e12b1a418c1">5f13eb30</a> by Rodrigo Souto
acts-as-having-posts: fetch rss from children
- - - - -
Changes:
=====================================
lib/acts_as_having_posts.rb
=====================================
--- 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150225/d146e20e/attachment.html>
More information about the Noosfero-dev
mailing list