2018/08/28分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activemodel/CHANGELOG.md
Update "Action View Form Helpers" guide [ci skip]
rails guideのAction View Form Helpers
の修正です。
各項の言い回しやグラマー修正、exampleコードに誤りがあったのを修正、等を行っています。
Add documentation for :collation
column option (#33733)
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
のdocの修正です。
add_column
メソッドのdoc内の使用出来るオプションについて説明している箇所に、:collation
オプションについての説明を追加しています。
Call block to #redirect_to in controller context (#33735)
actionpack/lib/action_controller/metal/redirecting.rb
の修正です。
redirect_to
メソッドのoptions
引数にProc
を指定した場合に、controllerのcontextでProc
を実行するよう修正しています。
ドキュメントにその旨説明されており(https://api.rubyonrails.org/classes/ActionController/Redirecting.html#method-i-redirect_to)、説明と挙動を合わせる為。
Merge pull request #33654 from kamipo/fix_numericality_validator_2
activemodel/lib/active_model/validations/numericality.rb
の修正です。
NumericalityValidator#validate_each
メソッドでvalueを取得する際に、xx_came_from_user?
やread_attribute
が定義されていなければ、type cast前のvalueを使用するよう修正しています。
Active Recordを使用している場合は問題無いのですが、Active Record以外のサードパーティのライブラリ(Mongoidやactive_attr)ではread_attribute
等のメソッドが定義されていない為。
Update the comments for TimeWithZone subtraction (#33721)
activesupport/lib/active_support/time_with_zone.rb
のdocの修正です。
TimeWithZone#-
メソッドのdocの戻り値についての説明を修正しています。
Use the HTTPS protocol for links to Edges Guides [ci skip]
rails guideの修正です。
edgeguides.rubyonrails.org へのリンクをHTTPSに修正しています。
Merge pull request #33689 from ypresto/ar-fix-dirty-in-around
activerecord/lib/active_record/attribute_methods/dirty.rb
の修正です。
around callbacks(e.g. around_create
)内でyield
実行後にdirty moduleが管理している値が正しくclearされないバグがあったのを修正しています。