gems rails 6.1.0.rc2

latest releases: 8.0.0, 7.2.2, 7.1.5...
3 years ago

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.

Don't miss a new rails release

NewReleases is sending notifications on new releases.