2019/01/11分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Move all npm packages to @rails scope
Railsで提供しているnpm packages(rails-ujs
、activestorage
、actioncable
、actiontext
)を、webpacker同様に@rails namespace配下に移動(@rails/actioncable
、@rails/actiontext
、@rails/activestorage
、@rails/ujs
)しています。
名称の変更だけで実際のリリースはまだです。なお、古い名称のpackageは削除等はされないため、古いバージョンについては引き続き使用出来ます。
Add Postmark to the ingress lists [ci skip]
actionmailbox/README.md
、
rails guideのAction Mailbox Basics
の修正です。
サポートしているサービスのリストにPostmarkを追加しています。
Merge pull request #34892 from kbrock/safer_safe_constantize
activesupport/lib/active_support/inflector/methods.rb
の修正です。
不正な定数名を指定した場合に、String#safe_constantize
がLoadError
をraiseしてしまう場合があったのを、メソッド内でLoadError
をrescueし、メソッドとしてはnil
を返すよう修正しています。
Add reasoning for I18n.with_locale
and explanation that the problem is
rails guideのRails Internationalization (I18n) API
の修正です。
Managing the Locale across Requests
の項に、何故I18n.with_locale
メソッドを使う必要があるのかについての説明を追加しています。
Fix typo in collection_radio_buttons spec [ci skip]
actionview/lib/action_view/helpers/form_options_helper.rb
のdocの修正です。
collection_radio_buttons
メソッドのdoc内のタイポを修正しています。
Replace secrets
with credentials
in comments
railtiesの修正です。
database.yml
のテンプレートファイルのコメント内、センシティブな情報を扱うファイルのファイル名がconfig/secrets.yml
になっていたのを、config/credentials.yml
に修正しています。
Refactor build_relation
in the uniqueness validator to avoid low level predicate construction
Active Recordの修正です。
uniqueness validatorのbuild_relation
メソッドでlow levelのpredicateの組み立て処理を行わないようリファクタリングしています。
Refactor bind_attribute
to expand an association to actual attribute
activerecord/lib/active_record/relation.rb
、
activerecord/lib/active_record/validations/uniqueness.rb
の修正です。
uniqueness validatorのbuild_relation
メソッドで行っていたattributeの取得処理を、relationのbind_attribute
で行うようリファクタリングしています。
Fix test_case_insensitiveness
to follow up eb5fef5
activerecord/test/cases/adapters/postgresql/case_insensitive_test.rb
の修正です。
先の、Refactor build_relation
in the uniqueness validator to avoid low level predicate constructionの修正によりtest_case_insensitiveness
のテストが失敗するようになっていたのを修正しています。
Remove id_value
argument which is no longer passed to sql_for_insert
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
、
activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
の修正です。
PostgreSQL::DatabaseStatements#sql_for_insert
メソッドの引数から使用されてないsql_for_insert
を削除しています。
Add info about config.action_mailer.delivery_job
to the guide [ci skip]
rails guideのConfiguring Rails Applications
の修正です。
config.action_mailer.delivery_job
についての説明を追加しています。
Support endless ranges in where
activerecord/lib/arel/predications.rb
の修正です。
Ruby 2.6で追加されたendless rangesのサポートを追加しています。endless rangeが指定された場合、infinityが指定されたのと同じ振る舞いをするようになっています。
# before User.where(id: 1..).to_sql # => "SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" BETWEEN 1 AND NULL" # after User.where(id: 1..).to_sql #=> "SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" >= 1"