Sha256: 34b78586049599e2b957697e20cd3804c2e323f54a229f42a5afb39e52a894d8

Contents?: true

Size: 542 Bytes

Versions: 128

Compression:

Stored size: 542 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("#{RubyApp::Log.prefix(self, __method__)} RubyApp::Language.locale.code=#{RubyApp::Language.locale.code.inspect}")
          return @application.call(environment)
        ensure
          RubyApp::Language.unload!
        end
      end

    end

  end

end

Version data entries

128 entries across 128 versions & 1 rubygems

Version Path
RubyApp-0.2.7 lib/ruby_app/rack/language.rb
RubyApp-0.2.6 lib/ruby_app/rack/language.rb
RubyApp-0.2.5 lib/ruby_app/rack/language.rb
RubyApp-0.2.4 lib/ruby_app/rack/language.rb
RubyApp-0.2.3 lib/ruby_app/rack/language.rb
RubyApp-0.2.2 lib/ruby_app/rack/language.rb
RubyApp-0.2.1 lib/ruby_app/rack/language.rb
RubyApp-0.2.0 lib/ruby_app/rack/language.rb