Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Created October 24, 2011 04:00
Show Gist options
  • Save michaelklishin/3d995824090df94558b0 to your computer and use it in GitHub Desktop.
Save michaelklishin/3d995824090df94558b0 to your computer and use it in GitHub Desktop.
require "amqp/utilities/event_loop_helper"
require "amqp/integration/rails"
AMQP::Utilities::EventLoopHelper.run
AMQP::Integration::Rails.start do |connection|
puts "Connected to AMQP broker"
AMQP.channel = AMQP::Channel.new(connection)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment