2016/07/14分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activerecord/CHANGELOG.md
* adds support for limits in batch processing
* The flag error_on_ignored_order_or_limit has been deprecated in favor of the current error_on_ignored_order.
adds support for limits in batch processing
Active Recordの修正です。
Active Recordのbatch処理用のメソッド(#find_each、#find_in_batches、#in_batches)でlimitが使えるように対応しています。
Post.limit(10_000).find_each do |post| # ... end
この対応に合わせて、batch処理用メソッドとlimit又はorderを合わせて使用した場合にエラーをraiseするかどうかを設定するflagの名前がerror_on_ignored_order_or_limitからerror_on_ignored_orderに変更になっています。
Don't raise ActionController::UnknownHttpMethod from ActionDispatch::Static
actionpack/lib/action_dispatch/middleware/static.rbの修正です。
ActionDispatch::Static middlewareに不正なhttp methodが渡された場合に、ActionController::UnknownHttpMethodがraiseされるようになっていたのを、raiseされないよう修正しています。
Rails 5より前はエラーはraiseしないようになっていたのですが、Rails 5ではActionController::UnknownHttpMethodがraiseされるようになってしまっていたので、挙動を合わせる為、raiseしないよう修正しています。
removes a unnecessary limit call
activerecord/lib/active_record/relation/batches.rbの修正です。
ActiveRecord::Batches#in_batchesから不要なlimitメソッドの呼び出しを削除しています。
Fix adding implicitly rendered namespaced template digests to ETags
actionpack/lib/action_controller/metal/etag_with_template_digest.rbの修正です。
ETag用のtemplate digestを作成する際に、controlerのnamespaceが考慮されないバグがあったのを、考慮されるよう修正しています。
Merge pull request #25771 from kaspth/make-test-response-assign-response-parser
Action Dispatchの修正です。
ActionDispatch::Integration#processで行っていたresponseへのresponse_parserの値の設定を、ActionDispatch::TestResponse#initializeで行うよう修正しています。
元々response_parserIntegrationテストでのみ使用する事を想定していたのですが、controllerのテスト等Integration以外のテストの場合でも使用出来た方が良いだろう、という事で初期化処理の方で処理を行うよう修正しています。
finders guide: updates the section about batch processing [ci skip]
rails guideのActive Record Query Interfaceの修正です。
batch処理用メソッドについて説明している箇所を、adds support for limits in batch processingの内容に合わせて更新しています。合わて、フォーマットや言い回しの修正もまとめて行っています。
activerecord/lib/active_record/relation/batches.rbのdocの修正です。
ActiveRecord::Batches moduleの各メソッドのdoc内の言い回しを修正しています。
fixes a link in the release notes of 5.0 [ci skip]
rails guideのRuby on Rails 5.0 Release Notesの修正です。
config.static_cache_controlがdeprecatedになった対応へのリンクが誤っていたのを修正しています。
Fix typo in mailer previews test description [ci skip]
railties/test/application/mailer_previews_test.rbの修正です。
テスト名でconfigurationをconfiguraitonにタイポしていたのを修正しています。
Fix display of unsorted list in release notes of 5.0 [ci skip]
rails guideのRuby on Rails 5.0 Release Notesの修正です。
Active Record attributes APIについて説明している箇所で、リストが正しく表示されてなかったのを修正しています。