This commit is contained in:
albert
2013-01-30 15:32:16 -08:00
parent df715f7ecb
commit e6d906dc03

View File

@@ -6,11 +6,8 @@ module PostSetPresenters
def post_previews_html(template)
html = ""
is_empty = ::Post.with_timeout(500, false) do
posts.empty?
end
if is_empty
if posts.empty?
return template.render("post_sets/blank")
end