Module: Autoscale::QueueClassic::QueueCallbacks

Extended by:
ActiveSupport::Concern
Defined in:
lib/autoscale/queue_classic/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#delete_with_callbacks(id) ⇒ Object



33
34
35
36
37
# File 'lib/autoscale/queue_classic/callbacks.rb', line 33

def delete_with_callbacks(id)
  run_callbacks :delete do
    delete_without_callbacks(id)
  end
end

#enqueue_with_callbacks(method, *args) ⇒ Object



27
28
29
30
31
# File 'lib/autoscale/queue_classic/callbacks.rb', line 27

def enqueue_with_callbacks(method, *args)
  run_callbacks :enqueue do
    enqueue_without_callbacks(method, *args)
  end
end