Hi everyone,
Greg here with the latest from the world of Rails. It was a busy week with new releases and many improvements!
The first beta release for 5.1.0 is out with some love towards JavaScript, System Tests, Encrypted Secrets and more!
There is also a new stable release for 4.2.8 and a release candidate for 5.0.2
We’re proud to welcome Eileen M. Uchitelle to Rails core!
33 developers contributed to Rails this week. If you want to be part of this team, look at the issues list and make a contribution!
This pull request introduces support for custom url helpers and defining custom polymorphic mappings in routes.rb
Rails has a built in integration with Capybara now which makes writing system tests easier, since all the setup is handled by Rails. For more details read the write-up on the pull request.
Rails introduces secrets encryption which is inspired by the Sekrets gem.
It worth noting here that, some improvements to the crypto is on the way too.
Earlier the JobID wasn’t logged when a job started or ended performing, but that’s not the case anymore, making debugging of job related issues easier.
From now on ActiveSupport::Gzip.decompress checks the CRC in the gzip footer.
If you have multiple database connection per environment, you can group your config by the environment. Check this comment for an example.
scope
rather than merge!
for collection proxyA performance improvement by not using merge! when it is not necessary.
After freezing an ActiveSupport::TimeWithZone instance, it is not possible to call to_datetime because the value is cached in an instance variable. To avoid this issue, the instance variable is preloaded before the freeze occurs.
HashWithIndifferentAccess#compact returned nil earlier when the hash didn’t contain nil values in it. This PR fixed the problem.
quoted_id
in quoting / type castingOriginally quoted_id was used in legacy quoting mechanism. Now we use type casting mechanism for that hence quoted_id is deprecated.
That’s it from This Week in Rails. There were many other great contributions, too numerous to list here, but feel free to check them out!
Until next week 👣