From: Radhika Chippada Date: Wed, 18 Mar 2015 14:04:29 +0000 (-0400) Subject: 5375: after much hair pulling, found the syntax to replace MIME::Types.add(MIME:... X-Git-Tag: 1.1.0~1731^2~9 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c3604c1cc57556520634f9af57213abc80c86da9?ds=inline 5375: after much hair pulling, found the syntax to replace MIME::Types.add(MIME::Type.from_array... since from_array is deprecated; now using MIME::Types.add(MIME::Type.new... --- diff --git a/apps/workbench/config/initializers/mime_types.rb b/apps/workbench/config/initializers/mime_types.rb index ef95f43c24..f28391dffa 100644 --- a/apps/workbench/config/initializers/mime_types.rb +++ b/apps/workbench/config/initializers/mime_types.rb @@ -14,8 +14,8 @@ Mime::Type.register "application/sam", :sam # register MIME type with MIME::Type gem require 'mime/types' include MIME -MIME::Types.add(MIME::Type.from_array("application/fa", %(fa))) -MIME::Types.add(MIME::Type.from_array("application/fasta", %(fasta))) -MIME::Types.add(MIME::Type.from_array("application/go", %(go))) -MIME::Types.add(MIME::Type.from_array("application/r", %(r))) -MIME::Types.add(MIME::Type.from_array("application/sam", %(sam))) +MIME::Types.add(MIME::Type.new(["application/fa", %(fa)])) +MIME::Types.add(MIME::Type.new(["application/fasta", %(fasta)])) +MIME::Types.add(MIME::Type.new(["application/go", %(go)])) +MIME::Types.add(MIME::Type.new(["application/r", %(r)])) +MIME::Types.add(MIME::Type.new(["application/sam", %(sam)]))