Module: Thincloud::Resque::Resqueable::ClassMethods
- Defined in:
- lib/thincloud/resque/resqueable.rb
Instance Method Summary collapse
Instance Method Details
#perform(id, method, *args) ⇒ Object
13 14 15 |
# File 'lib/thincloud/resque/resqueable.rb', line 13 def perform(id, method, *args) find(id).send(method, *args) end |
#resqueable(options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/thincloud/resque/resqueable.rb', line 8 def resqueable(={}) instance_variable_set :"@queue", ([:queue] || self.new.class.collection.name).to_sym end |