Rails

Rails 6.1 Allows SQL Comments in OR Queries

ArgumentError used to be thrown when relations with SQL comments and Optimizer hints were combined using or. Rails edge(6.1.0.alpha) fixes that issue.

Rails Configurable web_image_content_types

Rails adds config.active_storage.web_image_content_types to make image content types configurable, supporting formats like webp.

ACID transactions in every day applications

Breaking down the use of ACID transactions using real-life examples of systems that we employ every day.

Rails 6.1 ActiveModel::Errors as Objects

Rails 6.1 changes ActiveModel::Errors from Hash to array of Error objects with where, add, delete.

Rails support bulk insert/upsert on relation

Rails 6.1 has added support for bulk insert/upsert on relation to preserve scope values.

Rails Parameters each_pair/each_value

Rails ActionController::Parameters each_pair and each_value now returns an enumerator when provided without a block.

Rails 6.1 Adds Signed IDs to Active Record

Rails 6.1 added support for signed ids which are a tamper-proof way of identifying a bearer

Rails 6 perform_enqueued_jobs Without Block

With Rails 6, we can use ActiveJob::TestCase#perform_enqueued_jobs without a block to perform jobs in tests

Rails 6.1 Adds rescue_from to ActionCable

The `rescue_from` on ActionCable::Connection::Base allows us to intercept unhandled exceptions

Rails Adds HTML Template Annotations

Rails 6.1 has added support for adding HTML comments to the rendered output indicating where each template begins and ends.