push
github
1 of 2 new or added lines in 1 file covered. (50.0%)
1474 existing lines in 101 files now uncovered.2646 of 6224 relevant lines covered (42.51%)
0.71 hits per line
1 |
class Api::V1::FinancialTransactionClassesController < 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
|
FinancialTransactionClass.all
|
× |
24 |
end
|
|
25 |
end
|