2019/08/01分のコミットです。
CHANGELOGへの追加はありませんでした。
Prevent error on transliterate with frozen strings.
activesupport/lib/active_support/inflector/transliterate.rbの修正です。
ActiveSupport::Inflector.transliterateにfreezeしたUTF-8以外のencodingのStringを指定した場合に、FrozenErrorが発生してしまうバグがあったのを修正しています。
activerecord/lib/active_record/railties/databases.rakeの修正です。
複数DB向けの設定を行っている場合に、db:seedで正しくデータのロードが出来ないバグがあったのを修正しています。なお、db:seedは複数DB向けのサポートがまだ行われておらず、複数DB向けの設定があってもデータはprimary DBにのみ作成されるようになっています。
Merge pull request #36791 from peterzhu2118/s3-upload-disposition
activestorage/lib/active_storage/service/s3_service.rbの修正です。
S3にファイルをアップロードする際にfilenameとcontent dispositionを指定出来るよう修正しています。
Upload file with filename and disposition for Azure
activestorage/lib/active_storage/service/azure_storage_service.rbの修正です。
Azureにファイルをアップロードする際にfilenameとcontent dispositionを指定出来るよう修正しています。
Do not use the same test class in different tests
actionmailer/test/base_test.rbの修正です。
異なるテストで同じテストクラスを使い回すようにしていたのを、別のテストクラスを使用するよう修正しています。それぞれで同じメソッドを定義しており、結果method redefinedのwarningが出てしまっていたのに対応する為。
Fixed a typo in documentation example of activerecord database configuration. [ci skip]
activerecord/lib/active_record/core.rbの修正です。
ActiveRecord::Core.configuration=メソッドのdoc内の実行結果の例が、設定内容と異なっていたのを修正しています。
Use try only when we're unsure if the receiver would respond_to the method
tryを使っていた箇所で&.に置き換えられる箇所(receiverがrespond_toに応答する処理)をまとめて&.を使用するよう修正しています。
These methods doesn't have to be protected
actionview/lib/action_view/helpers/url_helper.rb、
actionview/lib/action_view/layouts.rbの修正です。
可視性がprotectedになっていたが、protectedである必要性が無さそうなメソッドの可視性をprivateに変更しています。
Don't require 'active_support/all' in an individual test case!!!
activemodel/test/cases/helper.rb、
activemodel/test/cases/validations/inclusion_validation_test.rbの修正です。
不足していたrequireの追加&不要なrequireの削除を行っています。
It may be better to explicitly require 'object/try' where we call try
tryメソッドを使用している箇所で明示的にactive_support/core_ext/object/tryをrequireするよう修正しています。
Another missing require "AS/core_ext/object/try"
activesupport/lib/active_support/cache.rbの修正です。
active_support/core_ext/object/tryのrequireが不足している箇所がまだ残っていたのを修正しています。
Missing require "AS/core_ext/date_time/conversions"
activesupport/lib/active_support/core_ext/date_and_time/calculations.rbの修正です。
active_support/core_ext/date_time/conversionsのrequireが不足していたのを修正しています。
rails guideのAction View Form Helpersの修正です。
form_withメソッドのexampleコードで、コード内のコメントの先頭に#が無かったのを追加しています。