なるようになるブログ

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

rails commit log流し読み(2020/07/17)

2020/07/17分のコミットです。

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


Switch regex for delete_suffix in normalize_path

actionpack/lib/action_dispatch/journey/router/utils.rbの修正です。

normalize_pathメソッドで末尾の/を削除するのにregexを使用していたのを、delete_suffixメソッドを使用するよう修正しています。


Merge pull request #39829 from tgxworld/remove_protect_from_forgery_from_application_controller_template

railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.ttの修正です。

rails pluginで生成するcontrollerからprotect_from_forgery with: :exceptionを削除しています。デフォルトでprotect_from_forgeryが指定されるようになっている為。


Revert "Merge pull request #39613 from kamipo/where_with_custom_operator"

whereにcomparison operatorsを指定出来るよう対応した、Support where with comparison operators (>, >=, <, and <=)をRevertしています。APIについて、core teamからのapproveがとれてなかった為。

Support where with comparison operators (>, >=, <, and <=) Take 2で再度対応を進めています。