Adding 'is_searchable' status for tables which should be full-text searchable.
[arvados.git] / services / api / app / models / specimen.rb
index ea97fa012aee74c5c258a1e9ea15cc484c522759..37de071519e6a46a4399593472e907eb54606b0d 100644 (file)
@@ -4,11 +4,15 @@ class Specimen < ArvadosModel
   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