Rails

Rails 7.1 Supports Multiple Preview Paths For Mailers.

Rails 7.1 adds support for multiple mailer preview paths, enhancing flexibility and organization by allowing previews across various directories.

Rails 7.1 Adds Support For Logging Background Job Enqueue Callers.

Rails 7.1 ActiveJob logs background job enqueue callers with backtraces, showing the file and line number where jobs are triggered.

Rails Adds The Ability To Ignore Counter Cache Columns While They Are Backfilling

With Rails 7.2, we can now ignore counter cache columns during backfilling, allowing faster execution by reducing N+1 queries from counter cache column updates.

Rails 7.1 Adds Support For Composite Key Multi-Column Ordering In ActiveRecord::Batches

With Rails 7.1, `ActiveRecord::Batches` now supports multi-column ordering for models with composite primary keys, enabling separate ascending or descending order for each key.

Rails 7.1 Adds *_deliver Callbacks To ActionMailer

With Rails 7.1, we can hook into the lifecycle of email delivery with the help of ActionMailer before_deliver, around_deliver and after_deliver callbacks.

Sidekiq To SolidQueue Migration

Migrating the Miru app from Sidekiq to SolidQueue eliminated the dependency on Redis, reducing costs by utilizing database for job storage.

What Is New In Rails 7.2?

Rails 7.2 has just been released, packed with a range of exciting updates that enhance the Rails development experience. This blog highlights the key features and enhancements.

Rails Warns On Tests Without Assertions.

With Rails 7.2, `ActiveSupport::TestCase` now warns when tests do not run any assertions.

Rails Added Filter Option On in_order_of Method

Rails added the filter option to in_order_of to prioritize the specified values without filtering the results

Active Record Composite Primary Key Support In Rails 7.1.2

ActiveRecord models can now be configured with composite primary keys, making it easier to work with complex data models.