7709: Merge branch 'master' into 7709-api-rails4
[arvados.git] / services / api / app / models / collection.rb
index 4a1e610303189a28ae3c029836f9ece92e50c4e0..33f6bc2524273289d3c4240b1786fc746705af6c 100644 (file)
@@ -24,7 +24,7 @@ class Collection < ArvadosModel
   before_save :set_file_names
 
   # Query only untrashed collections by default.
-  default_scope where("is_trashed = false")
+  default_scope { where("is_trashed = false") }
 
   api_accessible :user, extend: :common do |t|
     t.add :name