Adding 'is_searchable' status for tables which should be full-text searchable.
[arvados.git] / services / api / app / models / specimen.rb
index 15a0c3bf414031357e5cd6d50d806b4404a02530..37de071519e6a46a4399593472e907eb54606b0d 100644 (file)
@@ -1,14 +1,18 @@
-class Specimen < OrvosModel
+class Specimen < ArvadosModel
   include AssignUuid
   include KindAndEtag
   include CommonApiTemplate
   serialize :properties, Hash
 
-  api_accessible :superuser, :extend => :common do |t|
+  api_accessible :user, extend: :common do |t|
     t.add :material
     t.add :properties
   end
 
+  def is_searchable
+    true
+  end
+
   def properties
     @properties ||= Hash.new
     super