Hi! Prathamesh here! Let's see what we have in store today from the Rails world.
Featured
This week we had 25 contributors. 8 of them were first time contributors!!!! 🎉
New
This change adds supports for passing expires_in options to the #increment and #decrement methods of the Memcached  store.
A new configuration to flush the idle database connections after a specified period. Defaults to 300 seconds. This change will ensure that you don't have idle database connections hanging around in your connection pool.
This change ensures that forked children don't send quit/shutdown/goodbye messages to the server on connections that belonged to their parent. It will prevent the connection leakage that might happen when connections are not closed when workers are forked from parent process.
Fixed
When form_with was introduced the auto generation of ids was disabled. Labels don't play well in such cases when the inputs don't have ids and it also made it harder to test the forms. This change enables the auto-generation of ids by default and allows to disable it using a config.
ActiveRecord::RecordNotFoundError accepts arguments such as primary_key, model_name and the arguments besides the error message. This change makes all the calls to this error uniform by passing these arguments wherever they were missing.
Improved
This change makes sure that even in case of variable length strings, the ActiveSupport::SecurityUtils.secure_compare doesn't leak the length information.
Wrapping Up
That's all we've got for this week, but do check out the full list of changes yourself. Over and out! See you next week ✌️
This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
Unsubscribe | View in browser