なるようになるブログ

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

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

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

CHANGELOGにのったコミットは以下の通りです。

activesupport/CHANGELOG.md

activerecord/CHANGELOG.md


Do nothing when the same block is included again.

activesupport/lib/active_support/concern.rbの修正です。

ActiveSupport::Concernincludedでblockを複数回includeした際、MultipleIncludedBlocksをraiseしていていたのを、同じblockの場合はraiseしないよう修正しています。

Rails applicationのreload時に同じconcernをloadする、という挙動を行うgemがあり、その際にエラーにならないようにする為、との事です。


Allow aliased attributes in update

activerecord/lib/active_record/attribute_methods/dirty.rbの修正です。

aliased attributesがupdate_columnsupdateに指定出来ないバグがあったのを修正しています。


Fix the scoping with query methods in the scope block

activerecord/lib/active_record/relation/spawn_methods.rbの修正です。

scope blockの中でscoping + query methodを使用した場合に、scopingで指定した条件が無視されてしまうバグがあったのを修正しています


Don't expose internal clock_gettime_supported? class method

activesupport/lib/active_support/notifications/instrumenter.rbの修正です。

内部用のクラスメソッドであるclock_gettime_supported?の可視性をprivateにしています。


Use the full link URL instead of bit.ly [ci skip]

activerecord/lib/active_record/integration.rbのdocの修正です。

raw_timestamp_to_cache_versionメソッドのdocになるPostgreSQLのコミットのリンクがbit.lyのURLになっていたのを、転送後のURL(https://github.com/postgres/postgres/commit/3e1beda2cde3495f41290e1ece5d544525810214)に修正しています。