mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
FIX: SiteSettings not avaliable in initializers on dev env.
This commit is contained in:
parent
4657d22eb0
commit
0ffe8402a9
|
@ -16,9 +16,9 @@ reload_settings = lambda {
|
|||
end
|
||||
}
|
||||
|
||||
if Rails.configuration.cache_classes
|
||||
reload_settings.call
|
||||
else
|
||||
reload_settings.call
|
||||
|
||||
if !Rails.configuration.cache_classes
|
||||
ActionDispatch::Reloader.to_prepare do
|
||||
reload_settings.call
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user