Module: RockQueue::ActiveRecordHelper::InstanceMethods
- Defined in:
- lib/rock-queue/active_record_helper.rb
Instance Method Summary collapse
Instance Method Details
#async(method, *args) ⇒ Object
24 25 26 |
# File 'lib/rock-queue/active_record_helper.rb', line 24 def async(method, *args) RockQueue.push(self.class.queue, self.class, id, method, *args) end |
#async_at(method, time_to_run_at, *args) ⇒ Object
28 29 30 |
# File 'lib/rock-queue/active_record_helper.rb', line 28 def async_at(method, time_to_run_at, *args) RockQueue.push_at(self.class, time_to_run_at, id, method, *args) end |