Class: ActiveStorageDashboard::Analyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/active_storage_dashboard/analyzer.rb

Class Method Summary collapse

Class Method Details

.callObject



3
4
5
6
7
# File 'lib/active_storage_dashboard/analyzer.rb', line 3

def self.call
  ActiveStorage::Blob.find_each do |blob|
    blob.analyze unless blob.analyzed?
  end
end