Skip to content

Commit 5db93b5

Browse files
authored
Merge pull request #238 from zzak/twir-2024-03-15
twir-2024-03-15
2 parents 56dd01e + 35b0cba commit 5db93b5

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: post
3+
title: "Active Record Basics Guide Refresh, Encrypted Attributes Re-Optimization, and more.."
4+
categories: news
5+
author: zzak
6+
og_image: assets/images/this-week-in-rails.png
7+
published: true
8+
date: 2024-03-15
9+
---
10+
11+
12+
Hi, it's [zzak](https://github.com/zzak). Let's explore this week's changes in the Rails codebase.
13+
14+
The [Rails World CFP](https://sessionize.com/rails-world/) will close in just one week on March 21.
15+
Submit your talk in time!
16+
17+
[Active Record Basics Guide](https://github.com/rails/rails/pull/51226)
18+
This PR refreshes the guide covering the basics of Active Record.
19+
20+
[Do not try to alias on key update when raw SQL is supplied](https://github.com/rails/rails/pull/51325)
21+
A bug was found when updating duplicates with raw SQL.
22+
23+
[Memoize "key_provider" from "key" or deterministic "key_provider" if any](https://github.com/rails/rails/pull/51324)
24+
Previously, this memoization was removed which lead to a performance hit for encrypted attributes.
25+
26+
[Updating Astana with a Western Kazakhstan timezone](https://github.com/rails/rails/pull/51317)
27+
On March 1, 2024, Kazakhstan (all parts) switched to a single time zone UTC+5.
28+
Using the latest [tzinfo-data](https://github.com/tzinfo/tzinfo-data/releases/tag/v1.2024.1) that updated the Kazakhstan timezones, ActiveSupport still showed the incorrect offset because it was pointing to the `Asia/Dhaka` Bangladesh timezone, which will not get the same TZ offset change.
29+
30+
[Preserve encoding on "truncate_bytes"](https://github.com/rails/rails/pull/51313)
31+
This PR addressed an issue where `String#truncate_bytes` can return a string with a different encoding than the one being truncated.
32+
33+
[Support custom blob key in ActiveStorage::Blob.compose](https://github.com/rails/rails/pull/51299)
34+
Since Rails 6.1, Active Storage has allowed to provide a custom `key` when attaching a new file.
35+
This PR adds support when using the `compose` class method to customize the name of the underlying service object.
36+
37+
[Fix MySQL adapter for inserts with aliases](https://github.com/rails/rails/pull/51286)
38+
This pull request addresses errors that occur when using MySQL 8.0.18 or lower version of MySQL 8.0.
39+
40+
[Railties configure sanitizer vendor in 7.1 defaults more robustly](https://github.com/rails/rails/pull/51267)
41+
In order to avoid an issue where Rails::HTML::Sanitizer is not yet loaded, which resulted in the sanitizer vendor remaining as `Rails::HTML4` and not be set to `Rails::HTML5` as intended in Rails 7.1.
42+
43+
44+
_You can view the whole list of changes [here](https://github.com/rails/rails/compare/@%7B2024-03-08%7D...main@%7B2024-03-15%7D)._
45+
_We had [20 contributors](https://contributors.rubyonrails.org/contributors/in-time-window/20240308-20240315) to the Rails codebase this past week!_
46+
47+
Until next time!
48+
49+
_[Subscribe](https://world.hey.com/this.week.in.rails) to get these updates mailed to you._

0 commit comments

Comments
 (0)