instance method analyze_later

Ruby on Rails 8.0.4

Since v5.2.8.1

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

analyze_later()

Enqueues an ActiveStorage::AnalyzeJob which calls #analyze, or calls #analyze inline based on analyzer class configuration.

This method is automatically called for a blob when it’s attached for the first time. You can call it to analyze a blob again (e.g. if you add a new analyzer or modify an existing one).

Source
# File activestorage/app/models/active_storage/blob/analyzable.rb, line 37
  def analyze_later
    if analyzer_class.analyze_later?
      ActiveStorage::AnalyzeJob.perform_later(self)
    else
      analyze
    end
  end

Defined in activestorage/app/models/active_storage/blob/analyzable.rb line 37 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Blob::Analyzable

Type at least 2 characters to search.

↑↓ navigate · open · esc close