circleci
678 of 678 new or added lines in 43 files covered. (100.0%)
1455 of 1615 relevant lines covered (90.09%)
5.43 hits per line
|
module Timber |
1✔ |
|
module Integrations |
1✔ |
|
module Rack |
1✔ |
4 |
# Reponsible for adding the user context.
|
|
|
class UserContext |
1✔ |
|
def initialize(app) |
1✔ |
|
@app = app
|
1✔ |
8 |
end
|
|
9 |
|
|
|
def call(env) |
1✔ |
|
@app.call(env)
|
6✔ |
12 |
end
|
|
13 |
|
|
|
private |
1✔ |
|
def user(env) |
1✔ |
|
if env['warden'] |
× |
|
env['warden'].user
|
× |
18 |
else
|
|
19 |
nil
|
|
20 |
end
|
|
21 |
end
|
|
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|