なるようになるブログ

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

rails commit log流し読み(2021/03/01)

2021/03/01分のコミットです。

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


Action Text: call #to_trix_html on rich_text_area_tag value

actiontext/app/helpers/action_text/tag_helper.rbactiontext/app/models/action_text/rich_text.rbの修正です。

Action Textのtrix editorで、pdfのpreviewが正しく表示されないバグがあったのを修正しています。


Avoid extra query attribute allocation in _insert_record/_update_record

Active Recordの修正です。

_insert_record/_update_recordメソッドでquery attributeのオブジェクト生成を減らすようリファクタリングしています。


Remove tests that tree manager takes an engine

Active Recordのテストの修正です。

tree managerにengineを指定した場合のテストを削除しています。Remove engine from TreeManager and subclassesでtree managerからengineは削除済みの為。


Replace ImmediateExecutor with nothing

Active Recordの修正です。

async executorでasyncを使用しない場合、configに:immediate(Concurrent::ImmediateExecutorを使用)を指定する必要があったのを、nilと指定させるよう修正しています。非同期処理を実行しない為のクラス、は不要ではないか、ということになり、Concurrent::ImmediateExecutorが削除された為。


Clarify button_to html_options documentation

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

button_toメソッドのdoc内のhtml_optionsに指定出来る値について説明している箇所に、html_optionsに指定出来る値についての詳細な説明を追加しています。