Module: ResqueAnyMethod
- Defined in:
- lib/resque_any_method.rb,
lib/resque_any_method/version.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Instance Method Summary collapse
-
#resque(method, *args) ⇒ Object
We can pass this any Repository instance method that we want to run later.
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/resque_any_method.rb', line 5 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#resque(method, *args) ⇒ Object
We can pass this any Repository instance method that we want to run later.
37 38 39 40 |
# File 'lib/resque_any_method.rb', line 37 def resque(method, *args) return self.send(method, *args) if Resque.inline? Resque.enqueue(self.class, id, method, *args) end |