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