lib/neo4j/shared/callbacks.rb:3
Allows you to perform a callback if a condition is not satisfied.
def conditional_callback(kind, guard) return yield if guard run_callbacks(kind) { yield } end
def destroy #:nodoc: tx = Neo4j::Transaction.new run_callbacks(:destroy) { super } rescue @_deleted = false @attributes = @attributes.dup tx.mark_failed raise ensure tx.close if tx end
#initialize
def initialize(args = nil) run_callbacks(:initialize) { super } end
def touch #:nodoc: run_callbacks(:touch) { super } end