Ruby on Rails v6.1.0.rc2 Release Notes

Release Date: 2020-12-03 // over 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 AdminAuthordelegate\_missing\_to :@authordef initialize(author)@author = authorendendPost.where(author: AdminAuthor.new(author))
    

    Sean Doyle

    Action View

    ๐Ÿ”„ Change form_with to generate non-remote forms by default.

    0๏ธโƒฃ form_with would generate a remote form by default. This would confuse
    ๐Ÿ‘‰ users because they were forced to handle remote requests.

    0๏ธโƒฃ 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:nonep.gyroscope:nonep.microphone :nonep.usb:nonep.fullscreen :selfp.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.