Guest User

Untitled

a guest
May 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # config/initializers/close_connections.rb
  2. if defined?($servlet_context)
  3. require 'action_controller/dispatcher'
  4.  
  5. ActionController::Dispatcher.after_dispatch do
  6. ActiveRecord::Base.clear_active_connections!
  7. end
  8. end
Add Comment
Please, Sign In to add comment