Ruby on Rails v6.1.0.rc2 Release Notes
Release Date: 2020-12-03 // about 3 years ago-
๐ Active Support
โช Ensure
MemoryStore
disables compression by default. Reverts behavior of
๐MemoryStore
to its prior rails5.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
settingconfig.action_view.form_with_generates_remote_forms
totrue
.Petrik de Heus
Action Pack
๐ Support for the HTTP header
Feature-Policy
has been revised to reflect
its rename toPermissions-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.