Dashboard calculations are done with an async job now

This commit is contained in:
Neil Lalonde
2013-08-02 18:31:25 -04:00
parent 1552c4b69e
commit 98b58150bb
11 changed files with 49 additions and 21 deletions

View File

@ -239,6 +239,7 @@ class SiteSetting < ActiveRecord::Base
setting(:delete_user_max_age, 7)
setting(:delete_all_posts_max, 10)
def self.generate_api_key!
self.api_key = SecureRandom.hex(32)
end