This commit is contained in:
albert
2012-01-14 17:19:42 -05:00
parent 57e93f8e69
commit 914d2d5b4e
4 changed files with 13 additions and 3 deletions

View File

@@ -47,6 +47,10 @@ module PostSets
tag_array.size == 0
end
def is_pattern_search?
tag_string =~ /\*/
end
def current_page
[page.to_i, 1].max
end