method
scope_for_strict_loading
v7.0.0 -
Show latest stable
- Class:
ActiveStorage::Blob
scope_for_strict_loading()public
No documentation available.
# File activestorage/app/models/active_storage/blob.rb, line 142
def scope_for_strict_loading # :nodoc:
if strict_loading_by_default? && ActiveStorage.track_variants
includes(variant_records: { image_attachment: :blob }, preview_image_attachment: :blob)
else
all
end
end