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