push
coveralls-ruby
170 of 13217 relevant lines covered (1.29%)
0.01 hits per line
1 |
class ApplicationPolicy |
× |
2 |
attr_reader :user, :record |
× |
3 |
|
|
4 |
def initialize(user, record) |
× |
5 |
@user = user
|
× |
6 |
@record = record
|
× |
7 |
end
|
× |
8 |
|
|
9 |
def scope |
× |
10 |
Pundit.policy_scope!(user, record.class)
|
× |
11 |
end
|
× |
12 |
|
|
13 |
class Scope |
× |
14 |
attr_reader :user, :scope |
× |
15 |
|
|
16 |
def initialize(user, scope) |
× |
17 |
@user = user
|
× |
18 |
@scope = scope
|
× |
19 |
end
|
× |
20 |
|
|
21 |
def resolve |
× |
22 |
scope |
× |
23 |
end
|
× |
24 |
end
|
× |
25 |
end
|
× |