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
のインスタンスを指定した場合のテストを追加しています。
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.rb
、
activerecord/lib/active_record/connection_adapters/mysql/schema_dumper.rb
の修正です。
MySQLでenum
とset
typeに指定されていたlimit
を削除しています。
enum
とset
が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
と同じ挙動にする為。