method

preview

rails latest stable - Class: ActiveStorage::StructuredEventSubscriber

Method not available on this version

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

preview(event)
public

No documentation available.

# File activestorage/lib/active_storage/structured_event_subscriber.rb, line 29
    def preview(event)
      emit_event("active_storage.preview",
        key: event.payload[:key],
        duration_ms: event.duration.round(2),
      )
    end