Passing existing graph causes undefined variable or method exception #5

Merged
merged 1 commit into from Sep 26, 2012

Projects

None yet

3 participants

@billkoch
Contributor

When passing an existing neo4j graph into Pacer:

Neo4j.db.start
Pacer.neo4j(Neo4j.db.graph)

I get an undefined variable or method exception for graph. It looks like the scope of the graph variable is only within the if-check for when path_or_graph is a String. My change is to simply remove the reference to graph and use neo.new directly.

@pangloss
Owner

Thanks!

@pangloss pangloss merged commit 8c1e473 into pangloss:master Sep 26, 2012
@mikederrick

I could use this change as well. If you could submit to rubygems, I'd really appreciate it.

@pangloss
Owner

Done

@mikederrick

Thanks, and great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment