mirror of https://github.com/rails/rails
Merge pull request #20516 from kares/patch-2
change AR clear order in ActionDisplatch::Reloader hook
This commit is contained in:
parent
039cba7c51
commit
a616b1e523
|
@ -142,8 +142,8 @@ module ActiveRecord
|
|||
ActiveSupport.on_load(:active_record) do
|
||||
ActionDispatch::Reloader.send(hook) do
|
||||
if ActiveRecord::Base.connected?
|
||||
ActiveRecord::Base.clear_reloadable_connections!
|
||||
ActiveRecord::Base.clear_cache!
|
||||
ActiveRecord::Base.clear_reloadable_connections!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue