Merge branch '3413-keep-trash-list'
[arvados.git] / apps / workbench / app / models / arvados_base.rb
index 083db9133b15cd4e746fbfca982ec6be3805c904..7bc043cc9e2ccc7fbc79a130bf7ee2d83940815b 100644 (file)
@@ -318,6 +318,12 @@ class ArvadosBase < ActiveRecord::Base
     false
   end
 
+  # can this class of object be copied into a project?
+  # override to false on indivudal model classes for which this should not be true
+  def self.copies_to_projects?
+    self.goes_in_projects?
+  end
+
   def editable?
     (current_user and current_user.is_active and
      (current_user.is_admin or