fix scoping for fast_count
This commit is contained in:
@@ -624,6 +624,8 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
count
|
||||
rescue ActiveRecord::StatementInvalid
|
||||
1_000_000
|
||||
rescue SearchError
|
||||
0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user