なるようになるブログ

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

rails commit log流し読み(2020/06/01)

2020/06/01分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Fix the doc for strict_loading! [ci skip]

activerecord/lib/active_record/core.rbのdocの修正です。

strict_loading!メソッドのdoc内のexampleコードでメソッドの使い方に誤りがあったのを修正しています。


Improve clarity of callback update warning [ci skip]

rails guideのActive Record Callbacksの修正です。

Available Callbacksの項にあるcallback内でのattributeの更新についての説明の言い回しを修正しています。


Needlessly tight dependency spec

activesupport/activesupport.gemspecの修正です。

minitestのバージョン指定が5系に制限していたのを、5.1以上に修正しています。


Reflect the permissive float in the lock file

Gemfile.lockの修正です。

先のgemspecの更新の際にGemfile.lockの更新が漏れていたのを修正しています。


Use statement cache for find_by with aliased attribute

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

find_byにalias attributeを指定した際に、statement cacheを使用するよう修正しています。


Fix test_statement_cache_with_find_by failure

activerecord/test/cases/bind_parameter_test.rbの修正です。

statement cace keyに誤ってSymbolを使っている箇所があったのを、Stringを使用するよう修正しています。


Merge pull request #39489 from kamipo/deprecate_passing_ar_object_to_quote

activerecord/lib/active_record/connection_adapters/abstract/quoting.rbの修正です。

Active Recordのobjectを直接quote / type_castに渡すのがdeprecateになりました。

以前あったquoting処理の為のメソッドで、現在Active Recordのobjectを渡して使用する必要は無い為。


Add ActiveRecord::Base.strict_loading_by_default and ActiveRecord::Base.strict_loading_by_default=.

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

strict_loading_by_defaultをmodel毎に指定出来るよう対応しています。


Fix minitest version constraints in Gemfile.lock

Gemfile.lockの修正です。

Reflect the permissive float in the lock fileGemfile.lockの更新が正しく行われてなかったのを修正しています。


Add missing new framework defaults for 6.1 [ci skip]

rails guideのConfiguring Rails Applicationsの修正です。

Results of config.load_defaultsの項に6.1で追加されたconfigの説明を追加しています。


Allow attribute aliases for timestamp magic columns

Active Recordの修正です。

timestamp magic columns(updated_atcreated_at等)のalias attributeだとcache keyの生成等各種処理が正しく動作しなかったのを修正しています。


Merge pull request #39494 from jonathanhefner/pathparser-lazy-regex

actionview/lib/action_view/template/resolver.rbの修正です。

PathParserのpath regexのbuild処理を、実際に使用する際に行うよう修正しています。

元々はクラス初期化時に処理を行っていたのですが、それだとAction View load後に追加されたhandlerの処理が正しく行えない為。


Added link to infosec.mozilla.org under the security guide.

rails guideのSecuring Rails Applicationsの修正です。

Additional Resourcesの項に、Mozilla's Web Security Guidelinesへのリンクを追加しています。