github
0 of 18 new or added lines in 4 files covered. (0.0%)
3922 existing lines in 105 files now uncovered.0 of 4086 relevant lines covered (0.0%)
0.0 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
UNCOV
3
|
module Admin |
× |
UNCOV
4
|
class AccessCodesController < CrudController |
× |
5 |
|
|
UNCOV
6
|
include Admin::Authenticatable |
× |
UNCOV
7
|
include Admin::CrudSwag |
× |
8 |
|
|
UNCOV
9
|
self.permitted_attrs = [:expires_at] |
× |
10 |
|
|
UNCOV
11
|
crud_swagger_paths(route_prefix: '/admin', |
× |
UNCOV
12
|
data_class: 'Admin::AccessCode', |
× |
UNCOV
13
|
tags: [:admin]) |
× |
14 |
|
|
UNCOV
15
|
def index |
× |
16 |
# In lack of a better place, automatically destroy expired codes in this action.
|
|
UNCOV
17
|
AccessCode.expired.destroy_all
|
× |
UNCOV
18
|
super
|
× |
UNCOV
19
|
end
|
× |
20 |
|
|
UNCOV
21
|
end
|
× |
UNCOV
22
|
end
|
× |