Merge branch 'search-suggestions'

This commit is contained in:
Toks
2013-05-07 21:51:03 -04:00
2 changed files with 13 additions and 1 deletions

View File

@@ -69,6 +69,10 @@ module PostSets
tag_string =~ /\*/
end
def is_empty_search?
posts.count == 0
end
def current_page
[page.to_i, 1].max
end