2018/10/23分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Use request object for context if there's no controller
- Apply mapping to symbols returned from dynamic CSP sources
[ci skip] Clarify load_paths behaviour
rails guideのRails Internationalization (I18n) API
の修正です。
Configure the I18n Module
の項に、application経由でload_path
を設定する方法(config.i18n.load_path
)とI18n.load_path
経由で設定する方法の違いについての注記を追加しています。
rails guideのActive Record Associations
の修正です。
warningが発生するbelongs_to
+ dependent: :destroy
を使用しているexampleがあったのを修正しています。
Merge pull request #34222 from bogdanvlviv/unify-changelog-entries
railties/CHANGELOG.md
の修正です。
Refactor migrations_path command option to databaseで--database
オプションに変更になった、--migrations_paths
オプションに関するエントリーを、--database
オプションを追加した対応のエントリーとマージしています。
Remove mentions about javascripts
option from the guide about generators [ci skip]
rails guideのCreating and Customizing Rails Generators & Templates
の修正です。
config.generators
のexampleから、使用出来ないjavascripts
オプションについての説明を削除しています。
Add docs to ActiveSupport::Notifications.subscribe
activesupport/lib/active_support/notifications.rb
のdocの修正です。
ActiveSupport::Notifications.subscribe
メソッドにdocを追加しています。
Merge pull request #34289 from jschulenklopper/patch-1
railties/lib/rails/generators/rails/app/templates/gitignore.tt
の修正です。
/storage/*
について説明しているコメントの末尾にピリオドを追加しています。
Merge pull request #34261 from matildasmeds/guides_remove_upgrade_section_from_asset_pipeline_guide
rails guideのThe Asset Pipeline
の修正です。
Upgrading from Old Versions of Rails
の項を削除しています。内容が古い(Rails 2.x -> 3.0についての話、及び、Rails 4系についての内容だった)為。
Merge pull request #34286 from rails/fix-csp-dynamic-sources
actionpack/lib/action_dispatch/http/content_security_policy.rb
の修正です。
Content Security Policyの設定で、dynamic sources(e.g. policy.script_src -> { request.host }
)を使用していた場合に、routesでredirect
を行うとエラーになってしまうバグがあったのを修正。及び、同じくdynamic sourcesを使用していて、dynamic sourcesの戻り値がSymbolの場合(e.g. policy.default_src -> { :self }
)に、不正なHTTPヘッダーが生成されてしまうバグがあったのを修正しています。
MySQL 8.0.13 raises ER_NO_REFERENCED_ROW
and ER_ROW_IS_REFERENCED
activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
の修正です。
InvalidForeignKey
にするerror numberの一覧に1216(ER_NO_REFERENCED_ROW)
と1217(ER_ROW_IS_REFERENCED)
)を追加しています。
親テーブルに対するtable-level privilegesが無い場合、ER_NO_REFERENCED_ROW
、及び、ER_ROW_IS_REFERENCED
が使用されるようMySQL 8.0.13で変更された為。
参考:MySQL :: MySQL 8.0 Reference Manual :: B.3 Server Error Codes and Messages
Fix PullRequest link to datetime_field changes on Rails 5.1 Release Notes
rails guideのRuby on Rails 5.1 Release Notes
の修正です。
datetime_field
とdatetime_field_tag
の挙動が変わった対応についてのPRのリンクが誤っていたのを修正しています。
Hide PG::Connection from API docs [ci skip]
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
のdocの修正です。
PG::Connection
classがAPI docに表示されないようにする為に、:nodoc:
の指定を追加しています。