method

touch_attachments

rails latest stable - Class: ActiveStorage::Blob

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

touch_attachments()
public

No documentation available.

# File activestorage/app/models/active_storage/blob.rb, line 364
    def touch_attachments
      attachments.then do |relation|
        if ActiveStorage.touch_attachment_records
          relation.includes(:record)
        else
          relation
        end
      end.each do |attachment|
        attachment.touch
      end
    end