なるようになるブログ

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

rails commit log流し読み(2018/12/11)

2018/12/11分のコミットです。

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


Prevent write queries for exec_query

activerecord/lib/active_record/connection_adapters/postgresql_adapter.rbactiverecord/lib/active_record/connection_adapters/sqlite3_adapter.rbの修正です。

exec_queryでqueryを実行する際にも、write queryのprevent処理を行うよう修正しています。


Prevent write queries with prepared statements for mysql2 adapter

activerecord/lib/active_record/connection_adapters/mysql/database_statements.rbの修正です。

mysql2 adapter + prepared statementsでwrite queryのprevent処理が正しく動作していなかったのを修正しています。


Upgrade Rubocop to 0.61.1 and fix offenses

Rubocopのバージョンを0.61.1に更新 + 各ファイルにcopを適用しています。


Don't treat begin and rollback transactions as write queries

Active Recordの修正です。

write queryのprevent処理で、begin / rollbackをwrite queryとして扱わないよう修正しています。


An explain query does not raise the ReadOnlyError if preventing writes

Active Recordの修正です。

write queryのprevent処理で、explain queryをwrite queryとして扱わないよう修正しています。


Fix typos in click test descriptions [ci skip]

actionview/test/ujs/public/test/data-disable-with.jsの修正です。

test description内のタイポを修正しています。


Prepend module in ActiveStorage overview

rails guideのActive Storage Overviewの修正です。

Discarding Files Stored During Integration Testsの項にあるIntegration testsでのファイル削除のexampleに誤りがあったのを修正しています。


An empty transaction does not raise the ReadOnlyError if preventing writes

Active Recordの修正です。

write queryのprevent処理で、空のtransactionを実行した際にReadOnlyErrorがraiseされてしまっていたのを、raiseされないよう修正しています。