This week in Rails - Deprecations, bugfixes and improvements!
Hello, this is Greg, bringing you the latest news from the Ruby on Rails world!
There have been 38 contributors to Rails in the first week of the year!
This PR deprecates the use of the name “primary” as the
connection_specification_name for ActiveRecord::Base in favor of
using “ActiveRecord::Base” to avoid confusion as earlier the classname was used in any other case.
The usage of the Range#include? method to check the inclusion of an argument in date-time with zone range is deprecated in Ruby and since Rails extends it, the deprecation needs to be carried forward.
As a replacement, it is recommended to use Range#cover?
Before this bugfix, if an app called establish_connection with no arguments or doesn’t call
connects_to in ApplicationRecord and uses parallel testing
databases, the application could’ve picked up the wrong configuration.
The improvement is highly coupled to the size of the hash but can be quite a bit for medium sized nested hashes.
That’s it for this week, till next time!
This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
> [View in browser](https://t.goodbits.io/f/a/-slnriXfFp5MYdlZCq_AkQ~~/AAB5kwA~/RgRf_LVMP0RDaHR0cHM6Ly9hcHAuZ29vZGJpdHMuaW8vZW1haWxzLzk3NDBmYTUyLTUxNDItNDg2Zi1iZjQxLTk5YTI3YjNlOWI2OFcDc3BjQgoAKU4wGl7-M2utUhpyYWlscy13ZWVrbHlAem9ldGhpY2FsLmNvbVgEAAAAAA~~)