Merge pull request #20516 from kares/patch-2

change AR clear order in ActionDisplatch::Reloader hook
This commit is contained in:
Matthew Draper 2015-06-12 02:07:53 +09:30
parent 039cba7c51
commit a616b1e523
1 changed files with 1 additions and 1 deletions

View File

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