Sha256: 6b6003a4980b5085acdc6a9331176229facd52ecdd007cbf6dd1087c868fe10f

Contents?: true

Size: 311 Bytes

Versions: 13

Compression:

Stored size: 311 Bytes

Contents

require 'rhoconnect/middleware/helpers'

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

      def call(env)
        env[Rhoconnect::CURRENT_USER] = Rhoconnect.extract_current_user(env)
        @app.call(env)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.4.4 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.4.3 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.4.2 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.6 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.5 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.4 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.3 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.2 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.1 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.1.beta4 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.1.beta3 lib/rhoconnect/middleware/current_user.rb
rhoconnect-3.3.1.beta2 lib/rhoconnect/middleware/current_user.rb