2020/06/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Deprecate passing an Active Record object to
quote
/type_cast
directly. - Add
ActiveRecord::Base.strict_loading_by_default
andActiveRecord::Base.strict_loading_by_default=
to enable/disable strict_loading mode by default for a model. The configuration's value is inheritable by subclasses, but they can override that value and it will not impact parent class.
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 fileでGemfile.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_at
やcreated_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へのリンクを追加しています。