{"comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/388dee5b4fb00316282b5f40b8409438?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"388dee5b4fb00316282b5f40b8409438","url":"https://api.github.com/users/michaelklishin","login":"michaelklishin","id":1090},"position":null,"updated_at":"2011-11-12T03:14:21Z","commit_id":"d57b3e9b83ee8f265e0720e4b9fcda9b79b6c468","url":"https://api.github.com/repos/travis-ci/travis-ci/comments/712684","line":null,"body":"I would connect on start the way we did. You never know when lazy connections will be initialized with autoload & ActiveSupport::Dependencies magic and we need to guarantee that we do it after Unicorn forks.\r\n\r\nAs for the initializer (that only matters if you need amqp connection in tests and Rails console) this will work just as well.","html_url":"https://github.com/travis-ci/travis-ci/commit/d57b3e9b83#commitcomment-712684","id":712684,"path":null,"created_at":"2011-11-12T03:14:21Z"}}