- 05 5月, 2020 7 次提交
-
-
由 akinomaeni 提交于
before ``` p Knot.create => #<Knot id: 1, created_at: "2016-05-05 01:29:47"> ``` after ``` p Knot.create => #<Knot id: 1, created_at: "2016-05-05 01:29:47.116928000"> ```
-
由 Aaron Patterson 提交于
Style fix for CachingKeyGenerator
-
由 Jack McCracken 提交于
-
由 Aaron Patterson 提交于
Add a separator to the cache key for ActiveSupport::CachingKeyGenerator
-
由 Jack McCracken 提交于
-
由 Aaron Patterson 提交于
Remove hashing from secure_compare and clarify documentation
-
由 Jack McCracken 提交于
-
- 04 5月, 2020 8 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Adds :inline option to Action Mailbox generator rails_command
-
由 Abhay Nikam 提交于
-
由 Kasper Timm Hansen 提交于
Support reentrant calls to RakeCommand.perform
-
由 Jonathan Hefner 提交于
Rake stores the current top-level task and arguments in global state. Invoking another top-level task within the same process requires overwriting this state. Doing so indiscriminately can cause incorrect behavior, such as infinitely repeating the original task. In particular, this is a problem when running one task from another via `rails_command "...", inline: true`. The solution is to save and restore the global state in each call to `RakeCommand.perform` using the `Rake.with_application` method. Fixes #39128.
-
由 Kasper Timm Hansen 提交于
[ActiveStorage] Rewrite Blob.unattached scope code using where.missing
-
由 fatkodima 提交于
-
- 03 5月, 2020 10 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Eugene Kenny 提交于
Allow associations to be autosaved multiple times
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Eugene Kenny 提交于
Since 901d62c5, associations can only be autosaved once: after a record has been saved, `@new_record_before_save` will always be false. This assumes that records only transition to being persisted once, but there are two cases where it happens multiple times: when the transaction that saved the record is rolled back, and when the persisted record is later duplicated.
-
由 Xavier Noria 提交于
Fix `modules_for_helpers` to will raise `MissingHelperError`
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Deprecate marshalling load from legacy attributes format
-
由 Ryuta Kamizono 提交于
- 02 5月, 2020 15 次提交
-
-
由 Xavier Noria 提交于
Motivation is twofold: * We are gradually removing `require_dependency` from the framework. * Let `helper` work if `config.add_autoload_paths_to_load_path` is disabled. Co-authored-by: NJean Boussier <jean.boussier@gmail.com>
-
由 Xavier Noria 提交于
Let's bump Zeitwerk in preparation for Rails 6.1. With Zeitwerk 2.3, applications can enable reloading and eager loading at the same time. As of this writing, Rails does not implement that logic, but if we do we know the dependency is in place to support it. Zeitwerk minor releases are backwards compatible, should be a seamlessly upgrade.
-
由 Ryuta Kamizono 提交于
Since #31827, marshalling attributes hash format is changed to improve performance because materializing lazy attribute hash is too expensive. In that time, we had kept an ability to load from legacy attributes format, since that performance improvement is backported to 5-1-stable and 5-0-stable. Now all supported versions will dump attributes as new format, the backward compatibity should no longer be needed.
-
由 Ryuta Kamizono 提交于
Fix `minimum` and `maximum` on non numeric column
-
由 Ryuta Kamizono 提交于
Deprecate passing a column to `type_cast`
-
由 Ryuta Kamizono 提交于
I supposed all aggregation functions will return numeric result in #39039, but that assumption was incorrect for `minimum` and `maximum`, if an aggregated column is non numeric type. I've restored type casting aggregated result for `minimum` and `maximum`. Fixes #39110.
-
由 Ryuta Kamizono 提交于
The type information for type casting is entirely separated to type object, so if anyone does passing a column to `type_cast` in Rails 6, they are likely doing something wrong. See the comment for more details: https://github.com/rails/rails/blob/28d815b89487ce4001a3f6f0ab684e6f9c017ed0/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb#L33-L42 This also deprecates passing legacy binds (an array of `[column, value]` which is 4.2 style format) to query methods on connection. That legacy format was kept for backward compatibility, instead of that, I've supported casted binds format (an array of casted values), it is easier to construct binds than existing two binds format.
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Lock benchmark-ips version < 2.8
-
由 Ryuta Kamizono 提交于
Looks like "File does not exist: benchmark/ips/stats/stats_metric" is caused by benchmark-ips 2.8.0. https://buildkite.com/rails/rails/builds/68586#d77847d6-b3f5-4fd9-af9e-45f465c9d801/940-965 https://buildkite.com/rails/rails/builds/68586#e2037c59-a695-41ff-9040-c8ee74fa7c16/940-965
-
由 Ryuta Kamizono 提交于
Looks like benchmark-ips 2.8.0 is broken. https://buildkite.com/rails/rails/builds/68583#cefd24fb-33e5-4967-ab5d-f52c46700cd7/1879-1934
-
由 Ryuta Kamizono 提交于
Remove internal `without_transaction_enrollment` callbacks
-
由 Ryuta Kamizono 提交于
Avoid quite useless loop in `find_by_sql`
-
由 Eileen M. Uchitelle 提交于
[Doc] Add mention to shared section in `config_for` docs [ci skip]
-
由 eileencodes 提交于
-