Skip to content

Commit

Permalink
Issue 2930: fixing helper method so works without summaries don't cau…
Browse files Browse the repository at this point in the history
…se feed generation to fail
  • Loading branch information
elzj committed Mar 3, 2012
1 parent 2107429 commit 34c71c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/works_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def download_url_for_work(work, format)
def feed_summary(work)
tags = work.tags.group_by(&:type)
text = "<p>by #{byline(work, :visibility => 'public')}</p>"
text << work.summary
text << work.summary if work.summary
text << "<p>Words: #{work.word_count}, Chapters: #{work.chapter_total_display}, Language: #{work.language ? work.language.name : 'English'}</p>"
unless work.series.count == 0
text << "<p>Series: #{series_list_for_feeds(work)}</p>"
Expand Down

0 comments on commit 34c71c1

Please sign in to comment.