{"pull_request":{"state":"open","deletions":8,"user":{"avatar_url":"https://secure.gravatar.com/avatar/931aa5a5ad222678baaeaac242c70d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"931aa5a5ad222678baaeaac242c70d81","url":"https://api.github.com/users/szetobo","login":"szetobo","id":328594},"merged_by":null,"updated_at":"2011-11-17T03:16:04Z","closed_at":null,"base":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/61b628931614c36307e37ae482573dbd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"61b628931614c36307e37ae482573dbd","url":"https://api.github.com/users/ryandotsmith","login":"ryandotsmith","id":11726},"repo":{"name":"queue_classic","master_branch":null,"fork":false,"pushed_at":"2011-11-13T03:32:33Z","open_issues":6,"clone_url":"https://github.com/ryandotsmith/queue_classic.git","updated_at":"2011-11-17T01:31:53Z","homepage":"http://ryandotsmith.heroku.com/2011/09/queue_classic.html","language":"Ruby","forks":16,"private":false,"svn_url":"https://svn.github.com/ryandotsmith/queue_classic","url":"https://api.github.com/repos/ryandotsmith/queue_classic","owner":{"avatar_url":"https://secure.gravatar.com/avatar/61b628931614c36307e37ae482573dbd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"61b628931614c36307e37ae482573dbd","url":"https://api.github.com/users/ryandotsmith","login":"ryandotsmith","id":11726},"html_url":"https://github.com/ryandotsmith/queue_classic","description":"A worker queue for Ruby applications that uses unbelievably awesome features in postgres.","size":252,"watchers":223,"id":1294210,"git_url":"git://github.com/ryandotsmith/queue_classic.git","created_at":"2011-01-26T04:50:39Z","ssh_url":"git@github.com:ryandotsmith/queue_classic.git"},"label":"ryandotsmith:master","sha":"e5ca645d91b9d519d6cd17be7751c993cc6e720c"},"diff_url":"https://github.com/ryandotsmith/queue_classic/pull/24.diff","commits":1,"comments":0,"head":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/931aa5a5ad222678baaeaac242c70d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"931aa5a5ad222678baaeaac242c70d81","url":"https://api.github.com/users/szetobo","login":"szetobo","id":328594},"repo":{"name":"queue_classic","master_branch":null,"fork":true,"pushed_at":"2011-11-17T02:59:28Z","open_issues":0,"clone_url":"https://github.com/szetobo/queue_classic.git","updated_at":"2011-11-17T02:59:28Z","homepage":"http://ryandotsmith.heroku.com/2011/09/queue_classic.html","language":"Ruby","forks":0,"private":false,"svn_url":"https://svn.github.com/szetobo/queue_classic","url":"https://api.github.com/repos/szetobo/queue_classic","owner":{"avatar_url":"https://secure.gravatar.com/avatar/931aa5a5ad222678baaeaac242c70d81?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"931aa5a5ad222678baaeaac242c70d81","url":"https://api.github.com/users/szetobo","login":"szetobo","id":328594},"html_url":"https://github.com/szetobo/queue_classic","description":"A worker queue for Ruby applications that uses unbelievably awesome features in postgres.","size":120,"watchers":1,"id":2792499,"git_url":"git://github.com/szetobo/queue_classic.git","created_at":"2011-11-17T01:31:53Z","ssh_url":"git@github.com:szetobo/queue_classic.git"},"label":"szetobo:master","sha":"4b954b14b30c4a2753b08205c3ff0dc7e91c9f31"},"additions":9,"url":"https://api.github.com/repos/ryandotsmith/queue_classic/pulls/24","merged":false,"merged_at":null,"body":"I follow the documentation to setup DATABASE_URL in an initializer, but its value never picked up by QC::Database.new.  While explicitly passing DATABASE_URL in command line works normally.\r\n\r\nI try to fix it by delaying the evaluation of environment variables until QC::Database.new instead of when the module load.  I test it in my Rails app (3.1.1 on ruby 1.9.3-p0) and seems working.","review_comments":0,"_links":{"comments":{"href":"https://api.github.com/repos/ryandotsmith/queue_classic/issues/24/comments"},"html":{"href":"https://github.com/ryandotsmith/queue_classic/pull/24"},"review_comments":{"href":"https://api.github.com/repos/ryandotsmith/queue_classic/pulls/24/comments"},"self":{"href":"https://api.github.com/repos/ryandotsmith/queue_classic/pulls/24"}},"html_url":"https://github.com/ryandotsmith/queue_classic/pull/24","issue_url":"https://github.com/ryandotsmith/queue_classic/issues/24","title":"Setting DATABASE_URL in initializer not working as expected","number":24,"mergeable":null,"changed_files":1,"id":503010,"patch_url":"https://github.com/ryandotsmith/queue_classic/pull/24.patch","created_at":"2011-11-17T03:16:04Z"},"action":"opened","number":24}