push
github
0 of 23 new or added lines in 7 files covered. (0.0%)
3917 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 |
|
|
3 |
# == Schema Information
|
|
4 |
#
|
|
5 |
# Table name: shows
|
|
6 |
#
|
|
7 |
# id :integer not null, primary key
|
|
8 |
# name :string not null
|
|
9 |
# details :text
|
|
10 |
# profile_id :integer not null
|
|
11 |
# created_at :datetime
|
|
12 |
# updated_at :datetime
|
|
13 |
# creator_id :integer
|
|
14 |
# updater_id :integer
|
|
15 |
#
|
|
16 |
|
|
UNCOV
17
|
class ShowSerializer < ApplicationSerializer |
× |
18 |
|
|
UNCOV
19
|
json_api_swagger_schema do
|
× |
UNCOV
20
|
property :attributes do |
× |
UNCOV
21
|
property :name, type: :string |
× |
UNCOV
22
|
property :details, type: :string |
× |
UNCOV
23
|
property :audio_access, type: :boolean |
× |
UNCOV
24
|
end
|
× |
UNCOV
25
|
property :links do |
× |
UNCOV
26
|
property :self, type: :string, format: 'url', readOnly: true |
× |
UNCOV
27
|
end
|
× |
UNCOV
28
|
end
|
× |
29 |
|
|
UNCOV
30
|
attributes :id, :name, :details, :audio_access |
× |
31 |
|
|
UNCOV
32
|
link(:self) { show_path(object) }
|
× |
33 |
|
|
UNCOV
34
|
def audio_access |
× |
UNCOV
35
|
Array(instance_options[:accessible_ids]).include?(object.id)
|
× |
UNCOV
36
|
end
|
× |
37 |
|
|
UNCOV
38
|
end
|
× |