From 2cfdf7187225bb865991d33c4f52f3ff1ff6b454 Mon Sep 17 00:00:00 2001 From: weiserma Date: Fri, 9 Oct 2020 11:23:06 -0400 Subject: [PATCH] Update action_text_overview.md Added additional overview in n+1 queries that the scope is named with the rich text field name. --- guides/source/action_text_overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/action_text_overview.md b/guides/source/action_text_overview.md index 6d398ffa49..9d384d282e 100644 --- a/guides/source/action_text_overview.md +++ b/guides/source/action_text_overview.md @@ -114,7 +114,7 @@ end ## Avoid N+1 queries -If you wish to preload the dependent `ActionText::RichText` model, you can use the named scope: +If you wish to preload the dependent `ActionText::RichText` model, assuming your rich text field is named 'content', you can use the named scope: ```ruby Message.all.with_rich_text_content # Preload the body without attachments.