Sha256: bc23fdd53d6515b4012bcd17814357ff43e3e87b298ee17ad4cd7d2f7ff49d7d

Contents?: true

Size: 235 Bytes

Versions: 5

Compression:

Stored size: 235 Bytes

Contents

module Spontaneous::Rack::Middleware
  class Transaction
    def initialize(app, site)
      @app = app
      @site = site
    end

    def call(env)
      @site.transaction do |conn|
        @app.call(env)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/rack/middleware/transaction.rb
spontaneous-0.2.0.beta9 lib/spontaneous/rack/middleware/transaction.rb
spontaneous-0.2.0.beta8 lib/spontaneous/rack/middleware/transaction.rb
spontaneous-0.2.0.beta7 lib/spontaneous/rack/middleware/transaction.rb
spontaneous-0.2.0.beta6 lib/spontaneous/rack/middleware/transaction.rb