2019/09/17分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #37120 from gmcgibbon/fix_has_one_reflect_check_custom_pk
activerecord/lib/active_record/reflection.rb
の修正です。
has_one through relation + integerじゃないprimary keyを使用していた場合に、エラーになってしまうバグがあったのを修正しています。
Docs: note removal of render :text
option from 5.1 guide [ci skip]
rails guideのUpgrading Ruby on Rails
の修正です。
Upgrading from Rails 5.0 to Rails 5.1
の項にrender
のtext
オプションが削除された対応についての説明を追加しています。
Reduce Array and Hash creations in Journey find_routes
actionpack/lib/action_dispatch/journey/router.rb
の修正です。
find_routes
メソッドでArray#zip
-> Array#each_with_index
を使用するようにしてオブジェクトの生成を減らすよう修正しています。
Use Path::Pattern#match? that uses Regexp#match? where MatchData is not in need
actionpack/lib/action_dispatch/journey/path/pattern.rb
、
actionpack/lib/action_dispatch/journey/router.rb
の修正です。
MatchData
が不要な場合にRegexp#match?
を使うよう修正しています。
actionpack/lib/action_dispatch/http/cache.rb
の修正です。
merge_and_normalize_cache_control!
メソッドで不要なHash作成処理を削除しています。
actionpack/lib/action_dispatch/http/cache.rb
の修正です。
merge_and_normalize_cache_control!
メソッドから不要な変数を削除しています。
actionpack/lib/action_dispatch/http/cache.rb
の修正です。
merge_and_normalize_cache_control!
メソッドでオプションの設定が不要な場合アーリーリターンするよう修正しています。
No need to dup temporary strings
actionpack/lib/action_dispatch/journey/router.rb
の修正です。
serve
メソッドから不要なdup
処理を削除しています。
Use Regext#match? where MatchData is not needed
MatchData
が不要な場合にRegexp#match?
を使うよう修正しています。
Prefer String#== over String#=== for clarity
actionpack/lib/action_dispatch/journey/route.rb
の修正です。
String#===
を使う必要が無い箇所で===
を使用していたのを、String#==
を使うよう修正しています。
Partially revert 4a9ef5e1202cdab1882989eb561b0dc854c9891b
activerecord/test/cases/test_case.rb
の修正です。
Use Regext#match? where MatchData is not neededの対応でテストがコケるようになってしまったので、一部元のコードに戻しています。
Fix typo s/higlights/highlights/ [ci skip]
rails guideのUpgrading Ruby on Rails
の修正です。
Active Storage assignment behavior change
の項のexampleコードでメソッド名をタイポしていたのを修正しています。
Silence method redefined warnings
activerecord/test/cases/reflection_test.rb
の出力です。
メソッド再定義の警告が出ている箇所をsilence_warnings
で囲むよう修正しています。
Fix typo in ActionMailbox::InboundEmail::MessageId [ci skip]
actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb
のdocの修正です。
ActionMailbox::InboundEmail::MessageId
.create_and_extract_message_id!`メソッドのdocのグラマーの修正を行っています。