Sha256: efdaf959411b2e10ffd40314e6e4e2ab4d197784d81a2986a3c85bf78bb9d07c

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

module Sandboxy
    class Middleware

        def initialize app
            @app = app
        end

        def call env
            require 'sandboxy'

            previous_environment = Sandboxy.environment
            $sandboxy = nil

            puts "Sandboxy: Moved to #{Sandboxy.configuration.default} environment" if Sandboxy.environment != previous_environment
        end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sandboxy-3.0.0 lib/sandboxy/middleware.rb