lib/n4j/request.rb in n4j-0.0.1.6 vs lib/n4j/request.rb in n4j-0.0.1.6.1

- old
+ new

@@ -10,14 +10,10 @@ clean_path = N4j.neo4j_url_prefix.sub('/db/data','/cleandb/all-gone') RestClient.delete(clean_path) end def neo4j_url_prefix - @neo4j_url_prefix ||= if ENV['NEO4J_REST_URL'] - "#{ENV['NEO4J_REST_URL']}/" - else - "http://#{host}:#{port}/db/data" - end + @neo4j_url_prefix ||= ENV['NEO4J_REST_URL'] || "http://#{host}:#{port}/db/data" end def port config = YAML.load_file("config/n4j.yml") config[Rails.env]['port']