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



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

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