handle some common error cases
This commit is contained in:
@@ -2,6 +2,8 @@ module PostSetPresenters
|
||||
class WikiPage < Post
|
||||
def posts
|
||||
@post_set.posts
|
||||
rescue ActiveRecord::StatementInvalid, PGError
|
||||
[]
|
||||
end
|
||||
|
||||
def post_previews_html(template)
|
||||
|
||||
Reference in New Issue
Block a user