Sha256: 0fed3e6b6be0e4a16b0fba32d5d08b9eeed39e3afb1e26a5d632ed94fc8e1636
Contents?: true
Size: 375 Bytes
Versions: 24
Compression:
Stored size: 375 Bytes
Contents
module Neo4j module Rails module TxMethods def tx_methods(*methods) methods.each do |method| tx_method = "#{method}_in_tx" send(:alias_method, tx_method, method) send(:define_method, method) do |*args| Neo4j::Rails::Transaction.run { send(tx_method, *args) } end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems