instance method
analyze_later
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
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