Skip to content

Commit 9c091b4

Browse files
committed
Use images instead of avatars for example [ci skip]
Originally discovered by @RSO in rails#42495 (comment)
1 parent e1a6b18 commit 9c091b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_storage_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ in N+1 queries loading all the variant records. To avoid these N+1 queries,
746746
use the named scopes on [`ActiveStorage::Attachment`][].
747747

748748
```ruby
749-
user.avatars.with_all_variant_records.each do |file|
749+
message.images.with_all_variant_records.each do |file|
750750
image_tag file.representation(resize_to_limit: [100, 100]).processed.url
751751
end
752752
```

0 commit comments

Comments
 (0)