2017/08/23分のコミットです。
CHANGELOGへの追加はありませんでした。
Fixing nginx configuration added missing semicolon
rails guideのConfiguring Rails Applications
の修正です。
Using a Reverse Proxy
の項にあるnginxの設定例にセミコロンが不足していたのを追加しています。
rails guideのRuby on Rails Security Guide
の修正です。
Cross-Site Scripting (XSS)
の項のグラマーの修正を行っています。
Fix spaces in the comment block [ci skip]
railties/lib/rails/source_annotation_extractor.rb
のdocの修正です。
SourceAnnotationExtractor::Annotation.register_directories
メソッドのdoc無いのコード例が、スペースが足りず正しくコードブロックが表示されていなかったのを修正しています。
Merge pull request #30360 from gcourtemanche/transaction_timedout
activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
、
activerecord/lib/active_record/errors.rb
の修正です。
ロック待機のタイムアウトの期限が切れた場合に使用する為のTransactionTimeout
クラスを追加しています。
InnoDBで1205 (ER_LOCK_WAIT_TIMEOUT)が発生した時に使用されます。MySQLだけ。
参考:MySQL :: MySQL 5.6 リファレンスマニュアル :: 14.19.5 InnoDB のエラーコード
Merge pull request #28991 from yahonda/load_authors_and_author_addresses
Active Recordのテストの修正です。
fixtureのloadが不足していた箇所をがあったのを追加しています。
Use https instead of http in guide [ci skip]
guides配下にある外部ページへのリンクを、httpからhttpsに修正しています。
counter_cache
requires association class before attr_readonly
activerecord/test/models/comment.rb
の修正です。
Comment
クラスを定義する前に、Post
クラスを定義するよう修正しています。
Comment
クラスではposts
に対してcounter cacheを使用するよう定義しているのですが、counter cacheを使用している場合、attr_readonly
メソッドの呼び出しより前に対象のassociation classがロードされている必要がある為、上記修正を行ったようです。なるほどー。