なるようになるブログ

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

rails commit log流し読み(2024/04/22)

2024/04/22分のコミットです。

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


Fix ActiveSupport configurations deprecations

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

Active Supportでdeprecatedになったconfig名のチェック処理が正しく行えてなかったのを修正しています。


Merge pull request #51620 from joshuay03/encourage-lease-connection-on-model-inspect-no-connection

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

ActiveRecord::Core#inspectメソッドで、DBに接続していない場合に表示する接続用のメソッド名をconnectionからlease_connectionに変更しています。ActiveRecord::Base.connectionはsoft deprecatedになっている為。


SerializedAttributeTest: use decorate_attribute

activerecord/test/cases/serialized_attribute_test.rbの修正です。

decorated typeに関するテストで、テスト対象のメソッドが誤っていたのを修正しています。


Update comments for helper method generation

actionpack/lib/abstract_controller/helpers.rbactionview/lib/action_view/test_case.rbの修正です。

helper methodを生成するmethod内のコメントが、実際に生成されるmethodと異なる内容になっていたのを修正しています。


Update builder doc links to point to the rails repo [ci skip]

docの修正です。

https://github.com/jimweirich/builderへのリンクをhttps://github.com/rails/builderに修正しています。現在はrails配下のforkしたリポジトリが使用されている為。


Remove reference to BlankSlate

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

現在は存在しないbuilder gemのBlankSlate classについて言及している箇所があったのを修正しています。