Sha256: fa4406504f25eb91e5754fcf4c8eecefade94482cc7a5b9b3c50746271dfabbc
Contents?: true
Size: 239 Bytes
Versions: 15
Compression:
Stored size: 239 Bytes
Contents
class Locale def initialize(app) @app = app end def call(env) req = Rack::Request.new(env) I18n.locale = req.params['locale'] status, headers, response = @app.call(env) [status, headers, response.body] end end
Version data entries
15 entries across 15 versions & 2 rubygems