push
coveralls-ruby
170 of 13217 relevant lines covered (1.29%)
0.01 hits per line
1 |
class AuthProviderPolicy < ApplicationPolicy |
× |
2 |
|
|
3 |
class Scope < Scope |
× |
4 |
def resolve |
× |
5 |
scope.includes(:providable)
|
× |
6 |
end
|
× |
7 |
end
|
× |
8 |
|
|
9 |
%w(index? show? create? update? destroy? mapping_fields?).each do |action| |
× |
10 |
define_method action do
|
× |
11 |
user.admin? |
× |
12 |
end
|
× |
13 |
end
|
× |
14 |
|
|
15 |
def active? |
× |
16 |
user |
× |
17 |
end
|
× |
18 |
|
|
19 |
def send_code? |
× |
20 |
user |
× |
21 |
end
|
× |
22 |
end
|
× |