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.6.60 lib/ruby_app/rack/language.rb
RubyApp-0.6.59 lib/ruby_app/rack/language.rb
RubyApp-0.6.58 lib/ruby_app/rack/language.rb
RubyApp-0.6.57 lib/ruby_app/rack/language.rb
RubyApp-0.6.53 lib/ruby_app/rack/language.rb
RubyApp-0.6.52 lib/ruby_app/rack/language.rb
RubyApp-0.6.51 lib/ruby_app/rack/language.rb
RubyApp-0.6.50 lib/ruby_app/rack/language.rb
RubyApp-0.6.49 lib/ruby_app/rack/language.rb
RubyApp-0.6.48 lib/ruby_app/rack/language.rb
RubyApp-0.6.47 lib/ruby_app/rack/language.rb
RubyApp-0.6.46 lib/ruby_app/rack/language.rb
RubyApp-0.6.45 lib/ruby_app/rack/language.rb
RubyApp-0.6.44 lib/ruby_app/rack/language.rb
RubyApp-0.6.43 lib/ruby_app/rack/language.rb
RubyApp-0.6.42 lib/ruby_app/rack/language.rb
RubyApp-0.6.41 lib/ruby_app/rack/language.rb
RubyApp-0.6.40 lib/ruby_app/rack/language.rb
RubyApp-0.6.39 lib/ruby_app/rack/language.rb
RubyApp-0.6.38 lib/ruby_app/rack/language.rb