fix scoping for fast_count

This commit is contained in:
albert
2013-01-06 13:44:56 -05:00
parent cd38472cb3
commit 4ef675af9e

View File

@@ -624,6 +624,8 @@ class Post < ActiveRecord::Base
end
end
count
rescue ActiveRecord::StatementInvalid
1_000_000
rescue SearchError
0
end