Sha256: d5268146104271fe0844851e684c2b53d05ee471d8ab4122ba8f357c094f6356

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

# encoding: UTF-8

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


      def call(env)
        response = nil
        Spontaneous::Content.scope(nil, false) do
          response = @app.call(env)
        end
        response
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta1 lib/spontaneous/rack/around_back.rb