Commit 0ae9f1ffed89aab9448b45d7ab78b87563cc24bb
1 parent
2dcc1755
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Indicate on to_html that the caller is a feed
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/feed_writer.rb
| @@ -19,7 +19,7 @@ class FeedWriter | @@ -19,7 +19,7 @@ class FeedWriter | ||
| 19 | for article in articles | 19 | for article in articles |
| 20 | xml.item do | 20 | xml.item do |
| 21 | xml.title(article.name) | 21 | xml.title(article.name) |
| 22 | - xml.description(article.to_html) | 22 | + xml.description(article.to_html(:feed => true)) |
| 23 | if article.created_at | 23 | if article.created_at |
| 24 | # rfc822 | 24 | # rfc822 |
| 25 | xml.pubDate(article.created_at.rfc2822) | 25 | xml.pubDate(article.created_at.rfc2822) |