Sha256: 1efdda07851de4aa3350cf81956847064d11e9726c7795bb81ceea8039c61162

Contents?: true

Size: 284 Bytes

Versions: 36

Compression:

Stored size: 284 Bytes

Contents

require 'rhoconnect/middleware/helpers'

module Rhoconnect
  module Middleware
    class CurrentApp
      def initialize(app)
        @app = app
      end

      def call(env)
        env[Rhoconnect::CURRENT_APP] = App.load(APP_NAME)
        @app.call(env)
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 lib/rhoconnect/middleware/current_app.rb
rhoconnect-7.5.1 lib/rhoconnect/middleware/current_app.rb
rhoconnect-7.4.1 lib/rhoconnect/middleware/current_app.rb
rhoconnect-7.1.17 lib/rhoconnect/middleware/current_app.rb
rhoconnect-6.2.0 lib/rhoconnect/middleware/current_app.rb
rhoconnect-6.0.11 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.18 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.17 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.15 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.0.22 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.2 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.0.7 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.0.3 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.5.0 lib/rhoconnect/middleware/current_app.rb
rhoconnect-5.1.1 lib/rhoconnect/middleware/current_app.rb
rhoconnect-4.0.4 lib/rhoconnect/middleware/current_app.rb
rhoconnect-4.0.3 lib/rhoconnect/middleware/current_app.rb
rhoconnect-4.0.2 lib/rhoconnect/middleware/current_app.rb
rhoconnect-4.0.1 lib/rhoconnect/middleware/current_app.rb
rhoconnect-4.0.0 lib/rhoconnect/middleware/current_app.rb