Class: Globalize::Automatic::TranslationJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/globalize/automatic/translation_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(automatic_translation, attr_name) ⇒ Object



6
7
8
# File 'lib/globalize/automatic/translation_job.rb', line 6

def perform(automatic_translation, attr_name)
  Globalize::Automatic.translator.run(automatic_translation, attr_name)
end