Sha256: 5fb29891717bb88e50d3912473adce5ab7caa3d3853cd1c1151f46b1eaf71fd1
Contents?: true
Size: 474 Bytes
Versions: 25
Compression:
Stored size: 474 Bytes
Contents
module RubyApp module Rack require 'ruby_app' class Language def initialize(application) @application = application end def call(environment) RubyApp::Language.load!(RubyApp::Request.language) begin # RubyApp::Log.debug("LANGUAGE #{RubyApp::Language.locale.code}") return @application.call(environment) ensure RubyApp::Language.unload! end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems