Sha256: de46826b329ccd65803e33e2282bada7b37209f1511928fb97ff448277b12b59
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true module SlayerRails module Extensions module Transaction extend ActiveSupport::Concern included do def transaction(&block) ActiveRecord::Base.transaction(&block) if block_given? end def self.transaction(&block) ActiveRecord::Base.transaction(&block) if block_given? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slayer_rails-0.5.4 | lib/slayer_rails/extensions/transaction.rb |
slayer_rails-0.5.0.beta | lib/slayer_rails/extensions/transaction.rb |