circleci
669 of 669 new or added lines in 43 files covered. (100.0%)
960 of 1511 relevant lines covered (63.53%)
2.12 hits per line
|
module Timber |
14✔ |
|
module Integrations |
14✔ |
|
module Rack |
14✔ |
4 |
# Reponsible for adding the user context.
|
|
|
class UserContext |
14✔ |
|
def initialize(app) |
14✔ |
|
@app = app
|
13 all except 638.1 ✔ |
8 |
end
|
|
9 |
|
|
|
def call(env) |
14✔ |
|
@app.call(env)
|
78 all except 638.1 ✔ |
12 |
end
|
|
13 |
|
|
|
private |
14✔ |
|
def user(env) |
14✔ |
|
if env['warden'] |
× |
|
env['warden'].user
|
× |
18 |
else
|
|
19 |
nil
|
|
20 |
end
|
|
21 |
end
|
|
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|