Add enable_mobile_theme site setting. Uncheck it to disable the mobile theme.

This commit is contained in:
Neil Lalonde
2013-09-17 11:25:22 -04:00
parent 2baf5fda8e
commit 0fafe124db
6 changed files with 74 additions and 29 deletions

View File

@ -261,6 +261,8 @@ class SiteSetting < ActiveRecord::Base
setting(:sequential_replies_threshold, 2)
client_setting(:enable_mobile_theme, true)
def self.generate_api_key!
self.api_key = SecureRandom.hex(32)
end