2020/06/22分のコミットです。
CHANGELOGへの追加はありませんでした。
[guide][association_basics] Fix grammar for a single example
rails guideのActive Record Associations
の修正です。
Single Table Inheritance (STI)
の項のグラマーの修正を行っています。
More exercise tests for first nth and last on dirty collection
Active Recordのテストの修正です。
dirty collectionに対するfirst nth、及び、lastを指定した場合のテストを追加しています。
Merge pull request #39677 from kamipo/allow_capital_characters_for_enum_names
enumのscopeを作成する際に、enumの値をparameterize
+ underscore
した値でscopeを作成するよう修正した、 Generate nicer scope names from enumsをRevertしています。
enumにcapital characterを使用していた場合に、生成されるscope名が変わってしまう(breaking changeになってしまう)為。
activesupport/lib/active_support/core_ext/object/json.rb
の修正です。
ActiveSupport::ToJsonWithActiveSupportEncoder
をpreprendする際の順番を修正しています。
Rubyでprepend(includeも)した際にiclassesにも影響があるよう変更されており、それにより想定とは違うクラスのto_json
が呼ばれるようになってしまった為。