Module: RockQueueSmpp::ActiveRecordHelper::InstanceMethods

Defined in:
lib/rock-queue-smpp/active_record_helper.rb

Instance Method Summary collapse

Instance Method Details

#async(method, *args) ⇒ Object



20
21
22
23
24
# File 'lib/rock-queue-smpp/active_record_helper.rb', line 20

def async(method, *args)
  config = RockQueueSmpp::Config.settings
  rq = RockQueueSmpp::Base.new config.adapter, {:server => config.host, :port => config.port}
  rq.push self.class, id, method, *args
end