Sha256: 8c88cae80ef4bc651894a1ebf4ccb19ba36a0d038647cd8b66a3cc6c61e96490

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

# encoding: UTF-8

module Spontaneous
  module Rack
    class AroundBack
      def initialize(app)
        @app = app
      end


      def call(env)
        response = nil
        Content.with_identity_map do
          S::Render.with_preview_renderer do
            Change.record do
              response = @app.call(env)
            end
          end
        end
        response
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha2 lib/spontaneous/rack/around_back.rb
spontaneous-0.2.0.alpha1 lib/spontaneous/rack/around_back.rb