Class: Mengpaneel::Strategy::AsyncServerSide

Inherits:
Base
  • Object
show all
Defined in:
lib/mengpaneel/strategy/async_server_side.rb

Defined Under Namespace

Classes: Worker

Instance Attribute Summary

Attributes inherited from Base

#all_calls, #controller

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Mengpaneel::Strategy::Base

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
# File 'lib/mengpaneel/strategy/async_server_side.rb', line 7

def run
  return false unless self.class.async?

  return true if all_calls[:tracking].blank?

  Worker.perform_async(all_calls, controller.try(:request).try(:remote_ip))

  true
end