2019/10/06分のコミットです。
CHANGELOGへの追加はありませんでした。
Support the OPTIONS Http Verb in Integration tests (#37369)
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
integration testsで使用出来るHTTP verbメソッドにoptions
メソッドを追加しています。
Allow OPTIONS verb in mapper (#37370)
actionpack/lib/action_dispatch/routing/mapper.rb
の修正です。
routerでOPTIONS verbを指定出来るよう修正しています。
元々match
メソッドにのvia
オプションにoptions
を指定すれば使えるようになっていたのですが、この対応により、直接options 'bar', to: 'foo#bar'
のように指定出来るようになっています。