mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Extend rails-settings-cached to merge db-saved hash values with defaults
This commit is contained in:
9
app/lib/settings/extend.rb
Normal file
9
app/lib/settings/extend.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module Settings
|
||||
module Extend
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
def settings
|
||||
ScopedSettings.for_thing(self)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user