Ruby on Rails: v6.1.0.rc2 Release

Release date:
January 22, 2021
Previous version:
v6.1.0.rc1 (released January 17, 2023)
Magnitude:
2,505 Diff Delta
Contributors:
25 total committers
Data confidence:
Commits:

109 Features Released with v6.1.0.rc2

Top Contributors in v6.1.0.rc2

jonathanhefner
kamipo
rafaelfranca
seanpdoyle
amatsuda
ktmouk
kaspth
p8
adrianna-chang-shopify
dhh

Directory Browser for v6.1.0.rc2

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Active Support

  • Ensure MemoryStore disables compression by default. Reverts behavior of MemoryStore to its prior rails 5.1 behavior.

    Max Gurewitz

Active Model

  • No changes.

Active Record

  • Fix odd behavior of inverse_of with multiple belongs_to to same class.

    Fixes #35204.

    Tomoyuki Kai

  • Build predicate conditions with objects that delegate #id and primary key:

    class AdminAuthor
      delegate_missing_to :@author
    
      def initialize(author)
        @author = author
      end
    end
    
    Post.where(author: AdminAuthor.new(author))
    

    Sean Doyle

Action View

  • Change form_with to generate non-remote forms by default.

    form_with would generate a remote form by default. This would confuse users because they were forced to handle remote requests.

    All new 6.1 applications will generate non-remote forms by default. When upgrading a 6.0 application you can enable remote forms by default by setting config.action_view.form_with_generates_remote_forms to true.

    Petrik de Heus

Action Pack

  • Support for the HTTP header Feature-Policy has been revised to reflect its rename to Permissions-Policy.

    Rails.application.config.permissions_policy do |p|
      p.camera     :none
      p.gyroscope  :none
      p.microphone :none
      p.usb        :none
      p.fullscreen :self
      p.payment    :self, "https://secure-example.com"
    end
    

    Julien Grillot

Active Job

  • No changes.

Action Mailer

  • No changes.

Action Cable

  • No changes.

Active Storage

  • Implement strict_loading on ActiveStorage associations.

    David Angulo

Action Mailbox

  • No changes.

Action Text

  • No changes.

Railties

  • No changes.