Skip to content
Browse files

Don't break when Post#body is nil. (fixes #30)

  • Loading branch information...
1 parent ffb313c commit 8b462c36c2f80aa73e924fe4e7ff90ebc1524a87 @hmans committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/schnitzelpress/post.rb
View
2 lib/schnitzelpress/post.rb
@@ -122,7 +122,7 @@ def render
@@markdown ||= Redcarpet::Markdown.new(MarkdownRenderer,
:autolink => true, :space_after_headers => true, :fenced_code_blocks => true)
- @@markdown.render(body)
+ @@markdown.render(body.to_s)
end
def post?

0 comments on commit 8b462c3

Please sign in to comment.
Something went wrong with that request. Please try again.