Skip to content

Commit

Permalink
FIX: SiteSettings not avaliable in initializers on dev env.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Jul 4, 2016
1 parent 4657d22 commit 0ffe840
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/005-site_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
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
Expand Down

0 comments on commit 0ffe840

Please sign in to comment.