Sha256: 36346dd5554bc308fe41c21a8cf4603693f92a330e8f3213d72639a72506b3a6

Contents?: true

Size: 177 Bytes

Versions: 7

Compression:

Stored size: 177 Bytes

Contents

module TranslationEngine
  module Request
    def remote_ip(env)
      request(env).ip
    end

    private

    def request(env)
      Rack::Request.new(env)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
translation_engine-0.2.0 app/middlewares/translation_engine/request.rb
translation_engine-0.1.0 app/middlewares/translation_engine/request.rb
translation_engine-0.0.8 app/middlewares/translation_engine/request.rb
translation_engine-0.0.7 app/middlewares/translation_engine/request.rb
translation_engine-0.0.5 app/middlewares/translation_engine/request.rb
translation_engine-0.0.4 app/middlewares/translation_engine/request.rb
translation_engine-0.0.3 app/middlewares/translation_engine/request.rb