Hello everyone! Prathamesh here bringing you the latest news from the Rails world. Let's get started ๐Ÿš…
We had 21 awesome people who helped make Rails better this week. Two of them contributed for the first time ever!
Would you like to help as well? Head over to the ๐Ÿ‘‰ย issues list.
Followup to adding the default option to the class_attribute macro, it is now added to mattr_accessor family of methods as well.

It can be used as follows:

mattr_accessor :always_write_cookie, default: false

A new method write_multi has been added to the cache stores which writes multiple cache entries at once.

For eg.

Rails.cache.write_multi foo: 'bar', baz: 'qux'

The default implementation just calls write_entry one by one for each entry but specific cache stores can override this behavior as per their ability of doing bulk writes.

This change fixes an issue with collection checkboxes and radio boxes where clicking on the labels was not selecting the options because the input elements did not have proper id attribute with respect to their labels.
This commit fixes an issue with the cache hit/miss log markers being applied to wrong partials.
That's it for this week, as always, we couldn't cover all of the changes, but feel free to check all the commits from this week.

Until next week! ๐Ÿ‘‹๐Ÿ‘‹
This Week in Rails ยท 30 N Racine #200 ยท Chicago IL 60607 ยท USA