Class: Elastic::Railties::Jobs::DeletingJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/elastic/railties/jobs/deleting_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(_type, _document) ⇒ Object



3
4
5
# File 'lib/elastic/railties/jobs/deleting_job.rb', line 3

def perform(_type, _document)
  _type.constantize.connector.delete _document
end