fix scoping for fast_count

This commit is contained in:
albert
2013-01-06 13:43:58 -05:00
parent a344fdbfe6
commit cd38472cb3

View File

@@ -32,7 +32,7 @@ module PostSets
raise SearchError.new("Upgrade your account to search more than two tags at once")
end
@posts ||= ::Post.tag_match(tag_string).paginate(page, :count => Post.fast_count(tag_string))
@posts ||= ::Post.tag_match(tag_string).paginate(page, :count => ::Post.fast_count(tag_string))
rescue ::Post::SearchError
@posts = ::Post.where("false")
end