mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Add method to reload settings #2925
This commit is contained in:
parent
e638b0db05
commit
6ff10268f3
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
class Setting < RailsSettings::CachedSettings
|
||||
include Versions # version/setting_version.rb
|
||||
|
||||
def self.reload_settings!
|
||||
Rails.cache.delete_matched('settings:.*')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue