Jun 9, 2021
Rails 7 adds encryption to ActiveRecord
Rails 7 supports application-level encryption. We can declare which attributes should be encrypted and, ActiveRecord will encrypt and decrypt when necessary.
Jun 8, 2021
Rails 7 ensures has_one autosave association callbacks get called once
In Rails 7, the autosave association callbacks for the has_one are non-cyclic.
Jun 4, 2021
Redux 4.1.0 converts error messages from strings to error code indexes
Redux 4.1.0 extracts error messages from production build, converts them into error code indexes, thereby shrinking the bundle size.
Jun 2, 2021
Rails 7 allows access to nested encrypted secrets by method calls
We can now access nested secrets stored in credentials.yml.enc using the dot (.) syntax instead of using [ ]
Jun 1, 2021
Rails 7 adds disable_joins: true option to has_one :through association
In multiple database applications, associations can't join across databases. When set, Rails makes 2 or more queries rather than using join for associations.
May 26, 2021
Rails 7 adds `Enumerable#sole` to return a sole item in the enumerable
Enumerable#sole returns the sole item in the enumerable and raises an exception if no items or more than one item is found.
May 25, 2021
Rails 7 adds range serializer for ActiveJob
ActiveJob in Rails 7 allows a range to be passed as an argument to perform method.
May 19, 2021
Ruby 3.1 Enumerable#tally now accepts an optional hash to count occurrences
Ruby 3.1 extends the functionality of the Enumerable#tally method introduced in Ruby 2.7. We can now pass another hash whose counts would be added to the resulting tally hash.
May 18, 2021
Ruby 3.1 adds Array#intersect? method
Ruby Array#intersect? method will return true or false based on common elements present in the two arrays.
May 14, 2021
React 17 internally uses the browser's focusin and focusout events for onFocus and onBlur events
React's onFocus and onBlur events have switched to using the native focusin and focusout events under the hood.