2016/05/11分のコミットです。
CHANGELOGへの追加はありませんでした。
rails guideのWorking with JavaScript in Railsの修正です。
Server-Side Concernsの項にあるformat.jsを返すexampleコードから、不要な{}を削除しています。
Make sure we reset the connection_specification_name on
activerecord/lib/active_record/connection_handling.rbの修正です。
remove_connectionメソッドで、connection_specification_nameの値をリセットするよう修正しています。
remove_connectionメソッドを呼び出した後、再度connectionの接続をしなおす際に、connection_specification_nameが再設定されずエラーになる、という問題があった為、remove_connection内でリセットするようにしたようです。
[ci skip] Update documents of ConnectionHandler
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rbのdocの修正です。
ConnectionHandlerクラス内のowner_to_pool変数のkeyがklass.nameからspec.nameにRefactor connection handler by arthurnn · Pull Request #24844 · rails/railsで変更されたので、docも変更内容に合わせて修正しています。
Getting Started Guide: Update Ruby version to 2.3.1p112
rails guideのGetting Started with Railsの修正です。
ruby -vの実行結果のexampleをruby 2.3.0p0からruby 2.3.1p112に修正しています。
Dont cache the conn_spec_name when empty
activerecord/lib/active_record/connection_handling.rbの修正です。
connection_specification_nameを必ずcacheするようにしていたのを、値が指定されていなかった場合はcachしないよう修正しています。
親クラスのconnection_specification_nameが変更になった場合に、そちらを参照出来るようにする為に修正したとの事です。
Set conn_spec_name after remove
activerecord/lib/active_record/connection_handling.rbの修正です。
establish_connectionメソッドで、remove_connectionメソッドを呼び出した後にconnection_specification_nameを指定するよう修正しています。
先のコミットでremove_connectionでconnection_specification_nameをリセットするようにした為。
Merge pull request #24912 from prathamesh-sonpatki/api-fix-response-format
actionpack/lib/action_dispatch/middleware/debug_exceptions.rbの修正です。
Rails APIアプリで、HTMLフォーマットのリクエストが来た場合もJSONフォーマットの値を返してしまっていたのを、HTMLフォーマットのリクエストの場合は、HTMLフォーマットの値を返すよう修正しています。
Getting Started Guide: Add channels and jobs to app purpose table [ci skip]
rails guideのGetting Started with Railsの修正です。
Creating the Blog Applicationの項でapp配下にあるフォルダについて説明している箇所に、channels、jobsを追加しています。
- Added clarity to documentation of ArrayInquirer#any? [ci skip]
activesupport/lib/active_support/array_inquirer.rbのdocの修正です。
ArrayInquirer#any?メソッドのdoc内にある、メソッドがreturnを返す条件についての説明の言い回しを修正しています。
Getting Started Guide: Add invoke test_unit to files table [ci skip]
rails guideのGetting Started with Railsの修正です。
Say "Hello", Railsの項にあるcontrollerのgenerateを実行した場合のexampleに、実際は行われるのに説明が無い項目があったので追加しています。