Module: RockQueue::ActiveRecordHelper::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#async(method, *args) ⇒ Object



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

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