mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Merge pull request #1229 from internetee/update-rails-settings-cached-gem
Update `rails-settings-cached` gem
This commit is contained in:
commit
703aa13b02
5 changed files with 86 additions and 78 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue