rails 7.0.7
Active Support
-
Fix
Cache::NullStorewith local caching for repeated reads.fatkodima
-
Fix
to_swith no arguments not respecting custom:defaultformatsHartley McGuire
-
Fix
ActiveSupport::Inflector.humanize(nil)raisingNoMethodError: undefined method `end_with?' for nil:NilClass.James Robinson
-
Fix
Enumerable#sumforEnumerator#lazy.fatkodima, Matthew Draper, Jonathan Hefner
-
Improve error message when EventedFileUpdateChecker is used without a compatible version of the Listen gem
Hartley McGuire
Active Model
-
Error.full_message now strips ":base" from the message.
zzak
-
Add a load hook for
ActiveModel::Model(namedactive_model) to match the load hook forActiveRecord::Baseand allow for overriding aspects of theActiveModel::Modelclass.
Active Record
-
Restores functionality to the missing method when using enums and fixes.
paulreece
-
Fix
StatementCache::Substitutewith serialized type.ywenc
-
Fix
:db_runtimeon notification payload when application have multiple databases.Eileen M. Uchitelle
-
Correctly dump check constraints for MySQL 8.0.16+.
Steve Hill
-
Fix
ActiveRecord::QueryMethods#in_order_ofto includenils, to match the behavior ofEnumerable#in_order_of.For example,
Post.in_order_of(:title, [nil, "foo"])will now include posts withniltitles, the same asPost.all.to_a.in_order_of(:title, [nil, "foo"]).fatkodima
-
Revert "Fix autosave associations with validations added on
:baseof the associated objects."This change intended to remove the :base attribute from the message, but broke many assumptions which key these errors were stored.
zzak
-
Fix
#previously_new_record?to return true for destroyed records.Before, if a record was created and then destroyed,
#previously_new_record?would return true. Now, any UPDATE or DELETE to a record is considered a change, and will result in#previously_new_record?returning false.Adrianna Chang
-
Revert breaking changes to
has_onerelationship deleting the old record before the new one is validated.zzak
-
Fix support for Active Record instances being uses in queries.
As of
7.0.5, query arguments were deep duped to avoid mutations impacting the query cache, but this had the adverse effect to clearing the primary key when the query argument contained anActiveRecord::Baseinstance.This broke the
noticedgem.Jean Boussier
Action View
-
Fix
render collection: @records, cache: trueto cache fragments as bare stringsPreviously it would incorrectly cache them as Action View buffers.
Jean Boussier
-
Don't double-encode nested
field_idandfield_nameindex valuesPass
index: @optionsas a default keyword argument tofield_idandfield_nameview helper methods.Sean Doyle
Action Pack
- No changes.
Active Job
- No changes.
Action Mailer
- No changes.
Action Cable
- No changes.
Active Storage
- No changes.
Action Mailbox
- No changes.
Action Text
- No changes.
Railties
-
Update default scaffold templates to set 303 (See Other) as status code on redirect for the update action for XHR requests other than GET or POST to avoid issues (e.g browsers trying to follow the redirect using the original request method resulting in double PATCH/PUT)
Guillermo Iguaran