Skip to content

Commit

Permalink
[wip] Attempt to fix #3420
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Nov 25, 2021
1 parent 5cd807e commit a14e098
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rails_admin/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class Engine < Rails::Engine
initializer 'RailsAdmin reload config in development' do |app|
config.initializer_path = app.root.join('config/initializers/rails_admin.rb')

unless Rails.application.config.cache_classes
if Rails.application.config.cache_classes
RailsAdmin::Config.initialize!
else
ActiveSupport::Reloader.before_class_unload do
RailsAdmin::Config.reload!
end
Expand Down

0 comments on commit a14e098

Please sign in to comment.