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:
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
Post a Comment