Class: Card::Set::Event::DelayedEvent::IntegrateWithDelayJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
lib/card/set/event/delayed_event.rb

Instance Method Summary collapse

Instance Method Details

#perform(act_id, card, card_attribs, env, auth, method_name) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/card/set/event/delayed_event.rb', line 38

def perform act_id, card, card_attribs, env, auth, method_name
  Card::Cache.renew
  card.deserialize_for_active_job! card_attribs
  ActManager.contextualize_delayed_event act_id, card, env, auth do
    card.send method_name
  end
ensure
  ActManager.expire
end