Merge pull request #3127 from evazion/fix-3123

Fix #3123: Error with user JSON query when the Archive service is not installed
This commit is contained in:
Albert Yi
2017-06-08 14:09:32 -07:00
committed by GitHub

View File

@@ -712,6 +712,7 @@ class User < ActiveRecord::Base
end
def pool_version_count
return nil unless PoolArchive.enabled?
PoolArchive.for_user(id).count
end