ruby - verify_active_connections! is deprecated in rails 4, what should we do to handle that functionality? -


i've been following post setup puma foreman:

https://www.digitalocean.com/community/articles/how-to-set-up-zero-downtime-rails-deploys-using-puma-and-foreman

the puma script says verify_active_connections! after connecting it's not available in rails 4. commenting out method call make script run i'm not sure if leak resources or not.

the documentation can see in regards issue is:

https://github.com/socialcast/resque-ensure-connected/issues/3

but there's no conclusive answer on do. think options either omit , rails handle under hood or each block runs verify on each one. have real answer on do? thanks.

it appears in rails 4 removed in commit:

https://github.com/rails/rails/commit/9d1f1b1

it seems should looking at:

activerecord::base.clear_active_connections! 

here's github issues threads discuss it:


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -