Module: Queued::ActiveRecordIntegration::InstanceMethods

Defined in:
lib/queued/active_record_integration.rb

Instance Method Summary collapse

Instance Method Details

#queued(queue_name = nil) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/queued/active_record_integration.rb', line 19

def queued(queue_name = nil)
  if ::Queued.enabled
    ::Queued::QueueingProxy.new(self, queue_name)
  else
    self
  end
end