2018/02/09分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #31919 from bogdanvlviv/fix-test_counter_cache_with_touch_and_lock_version
test_counter_cache_with_touch_and_lock_version
でデータの更新を行う際に、travel
メソッドで日付を動かしてからデータを更新するようにしています。
テスト内でupdated_at
が更新されている事(元の値と事なる事)を確認するassertionがあるのですが、処理のタイミングによってはupdated_at
が元の値と同じになってしまう事がある為、必ず異なる値になるよう、travel
を追加しています。
Merge pull request #31934 from fatkodima/fix-has_many_through-dumping
activerecord/lib/active_record/associations/association.rb
の修正です。
has_many :through
associationsを含むmodelをMarshalでdumpするとエラーになってしまうバグがあったのを修正しています。
Use heredoc with credentials template
railties/lib/rails/generators/rails/credentials/credentials_generator.rb
、
railties/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb
の修正です。
credentials
及びencrypted
コマンドが生成する暗号化されたファイルのexampleで、値のインデントがおかしかったのを修正しています。
Merge pull request #31927 from mrreynolds/patch-2
activestorage/app/models/active_storage/variation.rb
のdocの修正です。
ActiveStorage::Variation
クラスのdocにcombine_options
オプションを指定する場合についての説明を追加しています。