module Neo4j::Shared::ClassMethods
Public Instance Methods
current_transaction()
click to toggle source
remove?
# File lib/neo4j/shared.rb 21 def current_transaction 22 Neo4j::ActiveBase.current_transaction 23 end
neo4j_query(*args)
click to toggle source
This should be used everywhere. Should make it easy to support a session-per-model system
# File lib/neo4j/shared.rb 27 def neo4j_query(*args) 28 Neo4j::ActiveBase.query(*args) 29 end
neo4j_session()
click to toggle source
remove?
# File lib/neo4j/shared.rb 16 def neo4j_session 17 Neo4j::ActiveBase.current_session 18 end
new_query()
click to toggle source
# File lib/neo4j/shared.rb 31 def new_query 32 Neo4j::ActiveBase.new_query 33 end