なるようになるブログ

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

rails commit log流し読み(2019/08/24)

2019/08/24分のコミットです。

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


Cleanup unneeded blank string params in ActionText

actiontext/app/helpers/action_text/content_helper.rbactiontext/lib/action_text/plain_text_conversion.rbの修正です。

Stringを結合する際に不要な空文字の指定があったのを削除しています。


Fix titleize to work with parentheses (#37029)

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

中括弧(())を含むStringに対してtitleizeメソッドを実行した際に、中括弧内の文字列が一文字の場合、大文字にしないよう修正しています。

# Before
"name(s)".titleize #=> "Name(S)"

# After
"name(s)".titleize #=> "Name(s)"

Remove whitespace in environments/test.rb

railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.ttの修正です。

rails newで生成されるenvironments/test.rbから不要な空白を削除しています。