Created
September 4, 2012 19:45
-
-
Save wapcaplet/3625559 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Works fine, no errors: | |
Neo4j::Transaction.run do |tx| | |
@publish_set.status = 'published' | |
end | |
Neo4j::Transaction.run do |tx| | |
@publish_set.publish!(false) | |
end | |
But if there's a transaction that doesn't modify anything: | |
Neo4j::Transaction.run do |tx| | |
puts "hello" | |
end | |
Neo4j::Transaction.run do |tx| | |
@publish_set.publish!(false) | |
end | |
The second transaction raises "NoMethodError: undefined method `_java_node' for nil:NilClass" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment