なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2020/02/21)

2020/02/21分のコミットです。

CHANGELOGへの追加はありませんでした。


bumping rubocop to 0.80

Gemfile.lockの修正です。

rubocopのバージョンを0.80に更新しています。


Fix/improve strict_loading examples [ci skip]

activerecord/CHANGELOG.mdactiverecord/lib/active_record/relation/query_methods.rbの修正です。

strict_loadingのexampleでコードが不足・誤っていた箇所があったのを修正しています。


Remove validations from example components

Action Pack、Action Viewのテストの修正です。

componentsのテストからActiveModel::Validationsをcomponentsで使用した場合のテストを削除しています。

このテストを追加したGitHubではcomponentでvalidationを使用しないようにした、かつ、render_in APIと互換性のあるテストしておいた方が良いのでは、という事で削除されています。


Merge pull request #38394 from javiyu/fix-double-object-on-inverse-creation

activerecord/lib/active_record/associations/collection_association.rbactiverecord/lib/active_record/nested_attributes.rbの修正です。

has_many_inversingにtrueを指定している状態で、保存前に親レコードにアクセスした場合に、保存時にレコードが複数作られてしまうバグがあったのを修正しています。


Enable HashTransformKeys and HashTransformValues cops

Style/HashTransformKeysStyle/HashTransformValues copを追加、及び、各ファイルにcopを適応しています。


Rewrite JavaScript guide to use ES6

rails guideのWorking with JavaScript in Railsの修正です。

各箇所の説明がCoffeeScript + jQueryを使う前提の説明になっていたのを、素のJavaScriptを使用するよう説明及びexampleコードを修正しています。