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コードで、コード内のコメントの先頭に#
が無かったのを追加しています。