commit: 5ce8a1811abbb304a6cf92616a9db4fb3cac89ee
parent: dca0ffa1a12120eaa563aa0a73b96ddb7ba53be0
Author: alpaca-tc <alpaca-tc@alpaca.tc>
Date: Wed, 19 Apr 2017 21:58:27 +0900
Replace User.count -> User.confirmed.count (#2127)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
@@ -15,7 +15,7 @@ class InstancePresenter
end
def user_count
- Rails.cache.fetch('user_count') { User.count }
+ Rails.cache.fetch('user_count') { User.confirmed.count }
end
def status_count