2021/01/23分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Connection specification now passes the "url" key as a configuration for the adapter if the "url" protocol is "jdbc", "http", or "https". Previously only urls with the "jdbc" prefix were passed to the Active Record Adapter, others are assumed to be adapter specification urls.
- Support hash config for
structure_dump_flags
andstructure_load_flags
flags Now that Active Record supports multiple databases configuration we need a way to pass specific flags for dump/load databases since the options are not the same for different adapters.
Fix unintialized instance variable connection_class
activerecord/lib/active_record/core.rb
の修正です。
unintialized instance variableのwarningが出ていたのを修正しています。
Merge pull request #41162 from ghiculescu/patch-2
rails guideのWebpacker
の修正です。
タイポの修正や、壊れていたリンクの修正等を行っています。
Merge pull request #41188 from ijlee2/improve-getting-started
rails guideのGetting Started with Rails
の修正です。
Strong Parametersのexampleコードpermitするパラメータが不足していたのや、exampleコードのフォーマットの修正等を行っています。
Connection specification now passes the "url" key to the adapter
activerecord/lib/active_record/database_configurations/url_config.rb
の修正です。
Active Recordのadapter指定のurl
keyで、プロコトルにjdbc
しか指定出来なかったのを、http
、https
を指定出来るよう修正しています。
urlが指定される事を期待しているgemがある為。
Support hash config for structure_dump_flags
and structure_load_flags
flags
activerecord/lib/active_record/tasks/database_tasks.rb
の修正です。
structure_dump_flags
とstructure_load_flags
でadapter毎に異なるflagsを指定出来るよう対応しています。
ActiveRecord::Tasks::DatabaseTasks.structure_dump_flags = { mysql2: ['--no-defaults', '--skip-add-drop-table'], postgres: '--no-tablespaces' }
Update test docs in "contributing to Rails" guide
rails guideのContributing to Ruby on Rails
の修正です。
テストの実行方法について説明している箇所で、bin/test
を使用するよう修正しています。
Merge pull request #41206 from intrip/41198-fix-current-page-kwargs
actionview/lib/action_view/helpers/url_helper.rb
の修正です。
current_page?
にオプションをキーワード引数として渡すと、Ruby 3でArgumentError
になってしまうバグがあったのを修正しています。
start_with?
allows multiple prefix values
activerecord/lib/active_record/database_configurations/url_config.rb
の修正です。
複数の値をstart_with?
でチェックする際に、値を個別にstart_with?
でチェックしていたのを、全ての値をまとめてstart_with?
に指定するよう修正しています。