なるようになるブログ

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

rails commit log流し読み(2021/09/18)

2021/09/18分のコミットです。

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


Merge pull request #42517 from nvasilevski/nilable-default-scope-with-all-queries

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

default_scopeall_queries: trueオプションが指定されている場合に、nillableなscopeなSQL実行時に含まないよう修正しています。


Move the parameter wrapper code to the ActionController::Railtie class

actionpack/lib/action_controller/railtie.rbの修正です。

parameter wrapperのコードをActionController::Railtieに移動しています。config経由で値を設定出来るようにする為。


Pluralize the heading on the index page generated with scaffold

railties/lib/rails/generators/erb/scaffold/templates/index.html.erb.ttの修正です。

scaffoldで生成するindex pageのheadingの値を複数形にするよう修正しています。


Add beginning_of_week option to weekday_options_for_select

actionview/lib/action_view/helpers/form_options_helper.rbactionview/lib/action_view/helpers/tags/weekday_select.rbの修正です。

weekday_options_for_selectメソッドに週の始まりの曜日を指定する為のbeginning_of_weekオプションを追加しています。