なるようになるブログ

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

rails commit log流し読み(2022/02/18)

2022/02/18分のコミットです。

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

activesupport/CHANGELOG.md

actionview/CHANGELOG.md


Merge pull request #44174 from jguecaimburu/add_lowdash_support_to_path_parser_locale_regex

actionview/lib/action_view/template/resolver.rbの修正です。

templateにlowdashを含むlocale(e.g. :es_AR)が指定出来ないバグがあったのを修正しています。


Merge pull request #43390 from jhawthorn/remove_notification_event_children

Active Support、Action Viewの修正です。

ActiveSupport::Subscriberでsubscriberの"child" eventで保持していたのを、保持しないよう修正しています。

childのeventまで保持しておく必要は無いはず、かつ、childのeventまで保持している影響でオブジェクトを大量に保持しておく必要があり、OOMの原因になる可能性がある、等の問題がある為修正されました。


Fix rdoc for session_store documentation [ci-skip]

railties/lib/rails/application/configuration.rbのdocの修正です。

session_storeのdocのフォーマットを修正しています。


Fix links in CSP documentation [ci-skip]

actionpack/lib/action_dispatch/http/content_security_policy.rbのdocの修正です。

doc内のリンクのフォーマットが壊れていたのを修正しています。


Add documentation for controller CSP methods [skip-ci]

actionpack/lib/action_controller/metal/content_security_policy.rbのdocの修正です。

各メソッドにdocを追加しています。


form_for: Attempt to call to_model on record

actionview/lib/action_view/helpers/form_helper.rbの修正です。

form_forでrecordのto_modelを必ず呼び出すよう修正しています。独自にto_modelメソッドを定義している場合に正しく動作するようにする為。


Update getting_started.md

rails guideのGetting Started with Railsの修正です。

現在generatorが生成するファイルや画面の表示内容と一致しない箇所があったのを修正しています。


No need to use blank? here

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

blank?を使用する必要が無い箇所をempty?に修正しています。


Improve Content Security Policy documentation [ci-skip]

actionpack/lib/action_dispatch/http/content_security_policy.rbのdoc、及び、rails guideのSecuring Rails Applicationsの修正です。

Content Security Policy関連のdocについて、用語や言い回しの修正を行っています。