$30 off During Our Annual Pro Sale. View Details »

Rails 7.1 Unwrapped

Emmanuel Hayford
June 01, 2023
1

Rails 7.1 Unwrapped

The Rails SaaS Conference 2023

Unwrapping new features in Rails 7.1

Emmanuel Hayford

June 01, 2023
Tweet

Transcript

  1. Rails 7.0 Highlights Autoloading with Zeitwerk Asynchronous Query Loading Active

    Record Encryption Webpacker removed, import-maps added Turbolinks, UJS removed, Turbo and Stimulus added
  2. Add --parent option to job generator to specify parent class

    of job #45528 Active Job rails g job payment rails g job process_payment --parent=payment_job
  3. Allow ActiveRecord::QueryMethods#select to accept a hash #45612 Active Record Add

    support for exclusion constraints (PostgreSQL-only) #40224 Introduce adapter for Trilogy, a MySQL-compatible DB client #47880 Support encrypted attributes on columns with default values #45033 * Add validity for PostgreSQL indexes #45160 * Allow unscoping of preload and eager_load associations #45147 Add a build persistence method #45696 Allow resetting singular associations #46165 Add option to con fi gure digest algorithm in Active Record Encryption #44873 Allow ErrorReporter to handle several error classes #46299 Add db_runtime to Active Job instrumentation #40058 Add support for logging background job enqueue callers #47839 Return the blob/blobs when #attach is able to save the record #44439 Fixes ActiveStorage proxy downloads of fi les over 5mb in S3-like storages Introduce html: and screenshot: kwargs for system test screenshot helper #44720 Add include_seconds option to datetime_local_ fi eld. #45188 Add default Docker fi les #46762 Use puma worker count equal to processor count in production #46838 Use puma worker count equal to processor count in production #46838