Class: Workarea::BulkAction::Deletion

Inherits:
Workarea::BulkAction show all
Defined in:
app/models/workarea/bulk_action/deletion.rb

Instance Method Summary collapse

Methods inherited from Workarea::BulkAction

#admin_query, #completed!, #completed?, #convert_query_to_ids, #perform!, #reset_to_default!

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list

Methods included from Mongoid::Document

#embedded_children

Instance Method Details

#act_on!(model) ⇒ Object



6
7
8
# File 'app/models/workarea/bulk_action/deletion.rb', line 6

def act_on!(model)
  model.destroy
end