push
github
5 of 22 new or added lines in 2 files covered. (22.73%)
1451 existing lines in 110 files now uncovered.2671 of 6222 relevant lines covered (42.93%)
0.6 hits per line
1 |
class Api::V1::ArticleCategoriesController < Api::V1::BaseController |
1✔ |
2 |
include Concerns::CollectionScope |
1✔ |
3 |
|
|
4 |
def index |
1✔ |
UNCOV
5
|
render json: search_scope
|
× |
6 |
end
|
|
7 |
|
|
8 |
def show |
1✔ |
UNCOV
9
|
render json: scope.find(params.require(:id)) |
× |
10 |
end
|
|
11 |
|
|
12 |
private |
1✔ |
13 |
|
|
14 |
def max_per_page |
1✔ |
15 |
nil
|
|
16 |
end
|
|
17 |
|
|
18 |
def default_per_page |
1✔ |
19 |
nil
|
|
20 |
end
|
|
21 |
|
|
22 |
def scope |
1✔ |
UNCOV
23
|
ArticleCategory.all
|
× |
24 |
end
|
|
25 |
end
|