Update rails-settings-cached gem

Closes #1228
This commit is contained in:
Artur Beljajev 2019-06-18 09:08:51 +03:00
parent 330515b517
commit e051784e4c
5 changed files with 86 additions and 78 deletions

View file

@ -1,5 +1,9 @@
class Setting < RailsSettings::CachedSettings
class Setting < RailsSettings::Base
include Versions # version/setting_version.rb
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" }
def self.reload_settings!
STDOUT << "#{Time.zone.now.utc} - Clearing settings cache\n"