Sha256: 77055362b607904cfcdb37c419996d488d78d49adfae571df962b5e298b26597

Contents?: true

Size: 369 Bytes

Versions: 7

Compression:

Stored size: 369 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
slayer_rails-0.4.0.beta4 lib/slayer_rails/extensions/transaction.rb
slayer_rails-0.4.0.beta3 lib/slayer_rails/extensions/transaction.rb
slayer_rails-0.3.3 lib/slayer_rails/extensions/transaction.rb
slayer_rails-0.3.2 lib/slayer_rails/extensions/transaction.rb
slayer_rails-0.3.1 lib/slayer_rails/extensions/transaction.rb
slayer_rails-0.3.0 lib/slayer_rails/extensions/transaction.rb
slayer_rails-0.1.0 lib/slayer_rails/extensions/transaction.rb