Sha256: b0dfc29299c164a3e649f01f50877dbb2368be38e6bb45bb7053f7a1dac51f83
Contents?: true
Size: 199 Bytes
Versions: 6
Compression:
Stored size: 199 Bytes
Contents
module ReportPreviewWrapper def wrap_in_transaction ActiveRecord::Base.transaction do begin yield ensure raise ActiveRecord::Rollback end end end end
Version data entries
6 entries across 6 versions & 2 rubygems