Module: ResqueExtensions::ObjectMethods

Defined in:
lib/resque_extensions.rb

Instance Method Summary collapse

Instance Method Details

#async(*args) ⇒ Object

call this method asynchronously



36
37
38
39
40
41
42
43
# File 'lib/resque_extensions.rb', line 36

def async(*args)
  if ResqueExtensions.async == true
    ResqueExtensions::AsyncMethod.new(self, *args).enqueue!
  # just call inline
  else
    self.send(*args)
  end
end