method

with_attached_*

Importance_1
v8.1.1 - Show latest stable - 0 notes - Class: Model
with_attached_* public

Includes the attached blobs in your query to avoid N+1 queries.

If ActiveStorage.track_variants is enabled, it will also include the variants record and their attached blobs.

User.with_attached_avatar

Use the plural form for has_many_attached:

Gallery.with_attached_photos
Show source
Register or log in to add new notes.