なるようになるブログ

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

rails commit log流し読み(2023/03/16)

2023/03/16分のコミットです。

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


Merge pull request #47683 from yskkin/patch-3

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

使用していないrequireを削除しています。


Rely on AM::ForbiddenAttributesProtection autoload

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

autoloadの対象となっており不要なrequireを削除しています。


Add example of simple environment config extending

rails guideのConfiguring Rails Applicationsの修正です。

Creating Rails Environmentsの項に、既存のenvironmentsを使用して新しいenvironmentsを追加する場合(e.g. production.rbを拡張してstaging.rbを作成する)の例を追加しています。


Undefine with on NilClass and other common immediate types

activesupport/lib/active_support/core_ext/object/with.rbの修正です。

NilClassTrueClassなどのimmediate typesにはwithメソッドを定義しないよう修正しています。それらのクラスではwithメソッドは不要で、逆にメソッドが定義されている事で予期せぬ挙動の原因になってしまう可能性がある為。


Also undefine with on Symbol

activesupport/lib/active_support/core_ext/object/with.rbの修正です。

Symbolにもwithメソッドを定義しないよう修正しています。