Hi, zzak here! お久しぶりです! This time I will be recapping the past month or so of Rails. Hang on! There’s a ton of stuff to catch up on!!
Originally extracted from HEY, this feature adds encrypted attributes to Active Record models. You can find out more in the guide.
Active Support’s cache has received a significant speed bump that was well overdue.
This optimization should reduce memory overhead and speed up boot times.
By converting AR::Base.logger to a class_attribute we had significant performance gains.
This opens up better organization for larger apps using i18n.
e.g. config/locales/en/models.yml vs. config/locales/models.en.yml
This change adds an Active Job serializer for the Range object from Ruby.
Based on ActiveRecord::FinderMethods#sole, this method returns the sole item of the enumerable. If there are no items, or more than one item it will raise an exception.
Since Ruby 2.4 included these methods, Rails can start using the native versions for significant performance increase.
By limiting the generated count queries, this optimization provides significant performance increase for operations over many rows.
A warning is now emitted when trying to use SQLite in production, this can be disabled by setting config.active_record.sqlite3_production_warning to false.
This solves a problem with has_one…through relationships whose tables are in separate database clusters.
This feature adds support for these two Content-Security-Policy headers which you can read more about over at MDN.
Any apps depending on this middleware can still activate it manually, otherwise a deprecation warning will be sent and replaced with a fake.
Now Rails.application.credentials.aws.access_key_id will return the same thing as Rails.application.credentials.aws[:access_key_id].
Adds the ability to live stream binary data to the browser like send_data does for static files.
This allows you to stream blobs from cloud storage in any controller.
This feature provides an optional keyword argument to assert_no_changes to specify the expected initial value.