mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
if Rails.configuration.cache_classes
|
reload_settings.call
|
||||||
reload_settings.call
|
|
||||||
else
|
if !Rails.configuration.cache_classes
|
||||||
ActionDispatch::Reloader.to_prepare do
|
ActionDispatch::Reloader.to_prepare do
|
||||||
reload_settings.call
|
reload_settings.call
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user