Module: ActsAsAsync::BaseExtensions::ClassMethods
- Defined in:
- lib/acts_as_async/base_extensions.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_async(opts = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/acts_as_async/base_extensions.rb', line 6 def acts_as_async(opts={}) # Set the queue to the passed option if opts[:queue] instance_variable_set(:@queue, opts[:queue]) # If no option was passed and there isn't a queue defined, use "default" elsif !instance_variable_defined?(:@queue) instance_variable_set(:@queue, :default) end include ActsAsAsync::Helper end |