なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2020/05/25)

2020/05/25分のコミットです。

CHANGELOGへの追加はありませんでした。


Utilize Symbol#start_with? and #end_with?

SymbolをStringに変換してからstart_with? / end_with?を使用している箇所があったのを、Symbol#start_with? / #end_with?メソッドを使用するよう修正しています。


require "active_support/core_ext/symbol/starts_ends_with" for Ruby 2.6

不足していたactive_support/core_ext/symbol/starts_ends_withの追加、及び、suffixを削除するのにStringに変換+delete_suffixを使用していた箇所を、Symbol#[]を使用するよう修正しています。


Test that Array#extract_options! extracts ActiveSupport::OrderedOptions

activesupport/test/core_ext/array/extract_options_test.rbの修正です。

Array#extract_options!ActiveSupport::OrderedOptionsインスタンスを指定した場合のテストを追加しています。


Fix typo [ci skip]

rails guideのCreating and Customizing Rails Generators & Templatesの修正です。

First Contactの項のグラマーの修正を行っています。


Refactor to lazy construct join table aliases

Active Recordの修正です。

join table aliasesの構築処理をlazyに行うようリファクタリングしています。


Merge pull request #39408 from kamipo/remove_limit_on_enum

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rbactiverecord/lib/active_record/connection_adapters/mysql/schema_dumper.rbの修正です。

MySQLenumset typeに指定されていたlimitを削除しています。

enumsetがStringとして扱われていた際の名残で、現在は不要な為。


Merge pull request #39415 from kamipo/merge_rewhere_with_non_attrs

activerecord/lib/active_record/relation/where_clause.rbの修正です。

merge(..., rewhere: true)でnon-attribute nodeも上書き出来るよう対応しています。mergeと同じ挙動にする為。