New site setting: minimum_topics_similar, allows you to specify a minimum amount

of topics that need to be in the database before it will suggest similar topics as
a user creates a post.
This commit is contained in:
Robin Ward
2013-06-19 13:13:12 -04:00
parent 00666a596f
commit 5ef6714d48
4 changed files with 40 additions and 10 deletions

View File

@ -222,6 +222,8 @@ class SiteSetting < ActiveRecord::Base
client_setting(:topic_views_heat_medium, 2000)
client_setting(:topic_views_heat_high, 5000)
setting(:minimum_topics_similar, 50)
def self.generate_api_key!
self.api_key = SecureRandom.hex(32)
end