Permalink
Browse files

Fix frozen string bug in Ruby 1.9.2 while utilize MONGO_URL environme…

…nt variable
  • Loading branch information...
1 parent f402b14 commit 4b52995fd383059ccad565d4cb2d3e9b95d08600 @tiendung tiendung committed Jun 29, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/heroku/command/mongo.rb
View
3 lib/heroku/command/mongo.rb
@@ -62,8 +62,7 @@ def local_mongo_uri
end
def make_uri(url)
- url.gsub!('local.mongohq.com', 'mongohq.com')
- uri = URI.parse(url)
+ uri = URI.parse(url.gsub('local.mongohq.com', 'mongohq.com'))
raise URI::InvalidURIError unless uri.host
uri
rescue URI::InvalidURIError

0 comments on commit 4b52995

Please sign in to comment.