2017/06/07分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Tiny documentation fixes [ci skip]
actionpack/lib/action_dispatch/system_test_case.rb
のdoc、及び、rails guideのA Guide to Testing Rails Applications
の修正です。
ActionDispatch::SystemTestCase
のdoc及びguideのSystem Testing
の項のグラマー、フォーマットの修正を行っています。
Remove invalid entry from the guides index page
guides/source/documents.yaml
の修正です。
Remove obsolete Guides source files [ci skip] · rails/rails@1a5d939で削除されたProfiling Rails Applications
がインデックスページに残っていたのを削除しています。
Update upgrading guide w.r.t. Parameters to use other example method than slice as this has actually been implemented by Parameters https://github.com/rails/rails/commit/f59559d70af237f8a52e4ebde34b39d834f2787e
rails guideのA Guide for Upgrading Ruby on Rails
の修正です。
“ActionController::Parameters
No Longer Inherits from HashWithIndifferentAccess
"の項で、permitted?
に依存しないメソッドの例でslice
があげられていたのですが、slice
はActionController::Parameters
に実装されており問題無い為、例のメソッドをmap
に変更しています。
activesupport/lib/active_support/cache.rb
の修正です。
ActiveSupport::Cache::Store
にwrite_multi
メソッドを追加しています。名前の通りで複数データをまとめて書き込む為のメソッドです。
Rails.cache.write_multi foo: 'bar', baz: 'qux'
実際の書き込み処理はwrite_multi_entries
メソッドを使用するようになっており、fetch_multi
でデータを書き込む場合(fetch出来なかった場合)もこちらのメソッドを使用するようになっています。write_multi_entries
の実装はwrite_entry
を複数回呼び出すだけになっており、基本的には各storeクラスでオーバライドする事を想定しているとの事です(Redisの場合はMSET
を使うようにする等)。