Add a setting to see if legaldocs are mandatory

This commit is contained in:
Alex Sherman 2020-07-01 16:59:17 +05:00
parent f7994e599a
commit a80e813632
5 changed files with 37 additions and 3 deletions

View file

@ -3,7 +3,7 @@ class Setting < RailsSettings::Base
source Rails.root.join('config', 'app.yml')
# When config/app.yml has changed, you need change this prefix to v2, v3 ... to expires caches
# cache_prefix { "v1" }
cache_prefix { 'v2' }
def self.reload_settings!
STDOUT << "#{Time.zone.now.utc} - Clearing settings cache\n"
@ -68,6 +68,7 @@ class Setting < RailsSettings::Base
request_confirmation_on_domain_deletion_enabled
nameserver_required
address_processing
legal_document_is_mandatory
]
end
end