push
travis-ci
80 of 2891 relevant lines covered (2.77%)
0.03 hits per line
1 |
class UserImportResultPolicy < ApplicationPolicy |
× |
2 |
def index? |
× |
3 |
true if user.try(:has_role?, 'Librarian') |
× |
4 |
end
|
× |
5 |
|
|
6 |
def show? |
× |
7 |
true if user.try(:has_role?, 'Librarian') |
× |
8 |
end
|
× |
9 |
|
|
10 |
def create? |
× |
11 |
false
|
× |
12 |
end
|
× |
13 |
|
|
14 |
def update? |
× |
15 |
false
|
× |
16 |
end
|
× |
17 |
|
|
18 |
def destroy? |
× |
19 |
false
|
× |
20 |
end
|
× |
21 |
end
|
× |