rails 6.1.1
Active Support
-
Change
IPAddr#to_jsonto match the behavior of the json gem returning the string representation instead of the instance variables of the object.Before:
IPAddr.new("127.0.0.1").to_json # => "{\"addr\":2130706433,\"family\":2,\"mask_addr\":4294967295}"After:
IPAddr.new("127.0.0.1").to_json # => "\"127.0.0.1\""
Active Model
- No changes.
Active Record
-
Fix fixtures loading when strict loading is enabled for the association.
Alex Ghiculescu
-
Fix
wherewith custom primary key for belongs_to association.Ryuta Kamizono
-
Fix
wherewith aliased associations.Ryuta Kamizono
-
Fix
composed_ofwith symbol mapping.Ryuta Kamizono
-
Don't skip money's type cast for pluck and calculations.
Ryuta Kamizono
-
Fix
whereon polymorphic association with non Active Record object.Ryuta Kamizono
-
Make sure
db:prepareworks even the schema file doesn't exist.Rafael Mendonça França
-
Fix complicated
has_many :throughwith nested where condition.Ryuta Kamizono
-
Handle STI models for
has_many dependent: :destroy_async.Muhammad Usman
-
Restore possibility of passing
falseto :polymorphic option ofbelongs_to.Previously, passing
falsewould trigger the option validation logic to throw an error saying :polymorphic would not be a valid option.glaszig
-
Allow adding nonnamed expression indexes to be revertible.
Fixes #40732.
Previously, the following code would raise an error, when executed while rolling back, and the index name should be specified explicitly. Now, the index name is inferred automatically.
add_index(:items, "to_tsvector('english', description)")fatkodima
Action View
-
Fix lazy translation in partial with block.
Marek Kasztelnik
-
Avoid extra
SELECT COUNTqueries when rendering Active Record collections.aar0nr
-
Link preloading keep integrity hashes in the header.
Étienne Barrié
-
Add
config.action_view.preload_links_headerto allow disabling of theLinkheader being added by default when usingstylesheet_link_tagandjavascript_include_tag.Andrew White
-
The
translatehelper now resolvesdefaultvalues when anilkey is specified, instead of always returningnil.Jonathan Hefner
Action Pack
-
Fix nil translation key lookup in controllers/
Jan Klimo
-
Quietly handle unknown HTTP methods in Action Dispatch SSL middleware.
Alex Robbin
-
Change the request method to a
GETwhen passing failed requests down toconfig.exceptions_app.Alex Robbin
Active Job
-
Make
retry_jobreturn the job that was created.Rafael Mendonça França
-
Include
ActiveSupport::Testing::AssertionsinActiveJob::TestHelpers.Mikkel Malmberg
Action Mailer
-
Sets default mailer queue to
"default"in the mail assertions.Paul Keen
Action Cable
- No changes.
Active Storage
-
Fix S3 multipart uploads when threshold is larger than file.
Matt Muller
Action Mailbox
- No changes.
Action Text
- No changes.
Railties
-
Allow spaces in path to Yarn binstub and only run on precompile if needed.
Markus Doits
-
Populate ARGV for app template.
Fixes #40945.
Jonathan Hefner