Skip to content

Commit

Permalink
Merge pull request #194 from significantbit/env-var-fixes
Browse files Browse the repository at this point in the history
Fixes issue with NEO4J_URL environment variable
  • Loading branch information
maxdemarzi committed Sep 30, 2014
2 parents 6d2f177 + a0b9acb commit 97bdf01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/neography/connection.rb
Expand Up @@ -13,7 +13,7 @@ class Connection
:parser, :client,
:proxy, :http_send_timeout, :http_receive_timeout

def initialize(options = ENV['NEO4J_URL'] || {})
def initialize(options = {})
config = merge_configuration(options)
save_local_configuration(config)
@client ||= Excon.new(config[:proxy] || "#{@protocol}#{@server}:#{@port}",
Expand Down
2 changes: 1 addition & 1 deletion lib/neography/rest.rb
Expand Up @@ -60,7 +60,7 @@ class Rest

def_delegators :@connection, :configuration

def initialize(options = ENV['NEO4J_URL'] || {})
def initialize(options = {})
@connection = Connection.new(options)
end

Expand Down

0 comments on commit 97bdf01

Please sign in to comment.