push
circleci
1 of 1 new or added line in 1 file covered. (100.0%)
204 of 885 relevant lines covered (23.05%)
0.3 hits per line
1 |
class EventPolicy < ApplicationPolicy |
× |
2 |
def index? |
× |
3 |
true
|
× |
4 |
end
|
× |
5 |
|
|
6 |
def show? |
× |
7 |
true
|
× |
8 |
end
|
× |
9 |
|
|
10 |
def create? |
× |
11 |
user.try(:has_role?, 'Librarian') |
× |
12 |
end
|
× |
13 |
|
|
14 |
def update? |
× |
15 |
user.try(:has_role?, 'Librarian') |
× |
16 |
end
|
× |
17 |
|
|
18 |
def destroy? |
× |
19 |
user.try(:has_role?, 'Librarian') |
× |
20 |
end
|
× |
21 |
end
|
× |