Class: Upgrade::BackfillModelRenders

Inherits:
BackfillDerivativesBase
  • Object
show all
Defined in:
app/jobs/upgrade/backfill_model_renders.rb

Instance Method Summary collapse

Instance Method Details

#apply(modelfile) ⇒ Object



12
13
14
15
16
17
18
19
# File 'app/jobs/upgrade/backfill_model_renders.rb', line 12

def apply(modelfile)
  status[:step] = "jobs.upgrade.backfill_model_renders.rendering" # i18n-tasks-use t('jobs.upgrade.backfill_model_renders.rendering')
  status[:message_variables] = {
    filename: modelfile.filename,
    model_name: modelfile.model.name
  }
  super
end

#derivative ⇒ Object



8
9
10
# File 'app/jobs/upgrade/backfill_model_renders.rb', line 8

def derivative
  "render"
end

#mime_types ⇒ Object



4
5
6
# File 'app/jobs/upgrade/backfill_model_renders.rb', line 4

def mime_types
  FileHandlers::F3d.input_types.without(MediaType.image_types)
end