- 18 10月, 2019 6 次提交
-
-
由 Rafael França 提交于
Add methods to the public API of ActiveRecord::Inheritance
-
由 Rafael Mendonça França 提交于
Those methods make possible to extend STI and Polymorphic associations. They are useful for cases where you renamed a class and the name of the class doesn't match the data in the database. You can now implement those methods in your model to load records with name of classes that don't exist anymore. A simple implementation would look like: class Animal < ActiveRecord::Base @@old_names = { "Lion" => "BigCat" } def self.sti_name name = super @@old_names[name] || name end def self.sti_class_for(type_name) @@old_names.inverse[type_name]&.constantize || super end end
-
由 Ryuta Kamizono 提交于
Fix random CI fail due to non-deterministic order
-
由 Jonathan Hefner 提交于
See https://buildkite.com/rails/rails/builds/64385#78d02d3f-51b4-45fc-af67-a5b9b543d2cc Although `in_batches` does apply an order to prevent batch overlap, the relation it yields to its block does not. Therefore, test results must be sorted for comparison.
-
由 Ryuta Kamizono 提交于
The intent of that tests is completely covered by with order version.
-
由 Ryuta Kamizono 提交于
Enumerator should be supported by ActiveSupport::SafeBuffer
-
- 17 10月, 2019 10 次提交
-
-
由 Jonathan Hefner 提交于
Follow-up to #33615 and #37447.
-
由 Shugo Maeda 提交于
Back references cannot be set because C level Proc doesn't support Binding. This commit fixes #37422.
-
由 Ryuta Kamizono 提交于
Merge pull request #37489 from giraffate/fix_random_ci_failure_due_to_non-deterministic_sorting_order Fix random CI failure due to non-deterministic sorting order
-
由 Kasper Timm Hansen 提交于
-
由 sinsoku 提交于
When editing credentials.yml.enc after creating a symbolic link, the symbolic link is removed and overwritten with a normal file. This commit changes the behavior to keep the symbolic link. In case of using a dead symbolic link that link is revived after writing. Fixes #36411
-
由 Paul McMahon 提交于
A class is only a direct descendant if its superclass is self. Fixes https://github.com/rails/rails/pull/37487
-
由 Paul McMahon 提交于
-
由 eileencodes 提交于
We don't want users or apps to use Role, so nodoc it.
-
由 Eileen M. Uchitelle 提交于
Manage connection pools in a new Role class rather than in DatabaseConfig
-
- 16 10月, 2019 8 次提交
-
-
由 Kasper Timm Hansen 提交于
Use ObjectSpace.each_object enumerator in descendants
-
由 Paul McMahon 提交于
-
由 Paul McMahon 提交于
-
由 Ryuta Kamizono 提交于
Remove patch for old JRuby versions
-
由 Paul McMahon 提交于
JRuby 9.0.5.0 (released January 26 2016 and Ruby 2.2 compatible) supports each_object(singleton_class) (#22385). Given that Rails 6 requires Ruby 2.5.0 or newer, we should be able to drop support for versions of JRuby older than 9.0.5.0.
-
由 Rafael França 提交于
Support ActiveModel::Error translation lookup on indexed attributes.
-
由 jonathankwok 提交于
-
由 Gannon McGibbon 提交于
Opt into has many inverse
-
- 15 10月, 2019 10 次提交
-
-
由 Richard Schneeman 提交于
Documentation: Add two RDoc links to methods
-
由 Martin Bjeldbak Madsen 提交于
-
由 Ryuta Kamizono 提交于
Update multi_json to the latest version
-
由 utilum 提交于
Avoid `warning: tried to create a Proc object without giving a block` in Ruby head. Fixed in intridea/multi_json@26a94ab8c78a394cc237e2ea292c1de4f6ed30d7 .
-
由 glaszig 提交于
-
由 Richard Schneeman 提交于
[ci skip] Remove reference to legacy Rails 2.x command
-
由 Matt Duszynski 提交于
-
由 Ryuta Kamizono 提交于
Fixed performance regression introduced MySQL 8.0
-
由 Ron Wilson 提交于
-
由 eileencodes 提交于
This reverts commit f54a8d0d. I am so sorry. I accidentally applied this on top of another PR to do some testing and then when I merged that one this got merged. I'm reverting this because we don't need to revert this now.
-
- 14 10月, 2019 6 次提交
-
-
由 Eileen M. Uchitelle 提交于
Use DatabaseConfig objects in dbconsole
-
由 alpaca-tc 提交于
-
由 Ryuta Kamizono 提交于
[ci skip]fix typo
-
由 willnet 提交于
-
由 Jonathan Hefner 提交于
The generated plugin Gemfile includes the Byebug gem (commented out), so it makes sense to include the history file in the generated .gitignore.
-
由 Jonathan Hefner 提交于
This also makes the generated gemspec more closely resemble a gemspec generated via the `bundle gem` command.
-