Sha256: 5aad0582442fd62df9adc0ee67e7b0d9d45f5b7417d9bab3965376b0b40a9749

Contents?: true

Size: 212 Bytes

Versions: 2

Compression:

Stored size: 212 Bytes

Contents

module Modis
  module Transaction
    def self.included(base)
      base.extend ClassMethods
    end

    module ClassMethods
      def transaction
        Modis.redis.multi { yield }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
modis-1.0.0 lib/modis/transaction.rb
modis-0.0.1 lib/modis/transaction.rb