FIX: SiteSettings not avaliable in initializers on dev env.

This commit is contained in:
Guo Xiang Tan 2016-07-04 11:15:29 +08:00
parent 4657d22eb0
commit 0ffe8402a9
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72

View File

@ -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