18301: Fixes the issue by adding 0 as one of the default values to be ignored.
[arvados.git] / services / api / app / models / specimen.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class Specimen < ArvadosModel
6   include HasUuid
7   include KindAndEtag
8   include CommonApiTemplate
9   serialize :properties, Hash
10
11   api_accessible :user, extend: :common do |t|
12     t.add :material
13     t.add :properties
14   end
15
16   def properties
17     @properties ||= Hash.new
18     super
19   end
20 end