Sha256: c1c9a506bab279cd1777906797b644ad314aa75ccb782fa76efcfcbcfda41405
Contents?: true
Size: 410 Bytes
Versions: 4
Compression:
Stored size: 410 Bytes
Contents
module ActiveGraph module Transaction def failure super @failure = true end def close success super end def after_commit(&block) after_commit_registry << block end def apply_callbacks after_commit_registry.each(&:call) unless @failure end private def after_commit_registry @after_commit_registry ||= [] end end end
Version data entries
4 entries across 4 versions & 1 rubygems