Sha256: 95d4abdd25e7c324b16c369bcdbbc4703010b48a9a5fe3151b2e121ab6a3da85

Contents?: true

Size: 154 Bytes

Versions: 2

Compression:

Stored size: 154 Bytes

Contents

class CurrentTime

  def initialize(app)
    @app = app
  end

  def call(env)
    Thread.current[:current_time] = Time.now
    @app.call(env)
  end

end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
apl-library-0.0.90 lib/apl-library/rack/current_time.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/lib/apl-library/rack/current_time.rb