diff --git a/app/models/job.rb b/app/models/job.rb index 20bdf78..321e8c3 100644 --- a/app/models/job.rb +++ b/app/models/job.rb @@ -20,6 +20,8 @@ class Job < ApplicationRecord # TODO: works only when job is created. Should move analyzer to activestorage : # https://discuss.rubyonrails.org/t/active-storage-in-production-lessons-learned-and-in-depth-look-at-how-it-works/83289 # https://redgreen.no/2021/01/24/custom-analyzer-for-activestorage.html + # Possible alternative + # https://github.com/shrinerb/shrine after_create_commit :analyze_pdf # NOTE: Multiple status if paing before brinting?