rails 7.0.8
Active Support
-
Fix
TimeWithZonestill using deprecated#to_swhenENVorconfigto disable it are set.Hartley McGuire
-
Fix CacheStore#write_multi when using a distributed Redis cache with a connection pool.
Fixes #48938.
Jonathan del Strother
Active Model
- No changes.
Active Record
-
Fix
change_columnnot settingprecision: 6ondatetimecolumns when using 7.0+ Migrations and SQLite.Hartley McGuire
-
Fix unscope is not working in specific case
Before:
Post.where(id: 1...3).unscope(where: :id).to_sql # "SELECT `posts`.* FROM `posts` WHERE `posts`.`id` >= 1 AND `posts`.`id` < 3"After:
Post.where(id: 1...3).unscope(where: :id).to_sql # "SELECT `posts`.* FROM `posts`"Fixes #48094.
Kazuya Hatanaka
-
Fix associations to a STI model including a
class_nameparameterclass Product < ApplicationRecord has_many :requests, as: :requestable, class_name: "ProductRequest", dependent: :destroy end # STI tables class Request < ApplicationRecord belongs_to :requestable, polymorphic: true validate :request_type, presence: true end class ProductRequest < Request belongs_to :user endAccessing such association would lead to:
table_metadata.rb:22:in `has_column?': undefined method `key?' for nil:NilClass (NoMethodError)Romain Filinto
-
Fix
change_tablesetting datetime precision for 6.1 MigrationsHartley McGuire
-
Fix change_column setting datetime precision for 6.1 Migrations
Hartley McGuire
Action View
-
Fix
form_formissing the hidden_methodinput for models with a namespaced route.Hartley McGuire
-
Fix
render collection: @records, cache: trueinsidejbuildertemplatesThe previous fix that shipped in
7.0.7assumed template fragments are always strings, this isn't true withjbuilder.Jean Boussier
Action Pack
-
Fix
HostAuthorizationpotentially displaying the value of the X_FORWARDED_HOST header when the HTTP_HOST header is being blocked.Hartley McGuire, Daniel Schlosser
Active Job
-
Fix Active Job log message to correctly report a job failed to enqueue when the adapter raises an
ActiveJob::EnqueueError.Ben Sheldon
Action Mailer
- No changes.
Action Cable
- No changes.
Active Storage
- No changes.
Action Mailbox
- No changes.
Action Text
- No changes.
Railties
-
Omit
webdriversgem dependency fromGemfiletemplateSean Doyle