20032: Fix unnecessary race in test.
[arvados.git] / apps / workbench / app / helpers / collections_helper.rb
index 5eb1e8c768d927dfdc14e814143d2a945ed0c011..0c89ca8783c0c45b523a33c4c8fd495ce17f0c58 100644 (file)
@@ -72,7 +72,7 @@ module CollectionsHelper
     elsif (file_type.raw_media_type == "text") || (file_type.raw_media_type == "image")
       true
     elsif (file_type.raw_media_type == "application") &&
-          (Rails.configuration.application_mimetypes_with_view_icon.include? (file_type.sub_type))
+          Rails.configuration.Workbench.ApplicationMimetypesWithViewIcon[file_type.sub_type]
       true
     else
       false