Project

General

Profile

Actions

Patch #16710

closed

Support for the 1.x versions of mime-types gem

Added by Szilveszter Ördög over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Gems support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Even though Redmine doesn't specify in its Gemfile a minimum version for the mime-types gem, it still assumes that version is 2.x or later. This is because it uses MIME::Types.find.

Unfortunately, upgrading to mime-types 2.x would break the dependencies of the mail gem.

The attached patch uses MIME::Types.type_for which is present in both 1.x and 2.x versions of mime-types.

Tested with Redmine 2.5.1 + ruby 1.8.7 + rails 3.2.17


Files

redmine-2.5.1-mime-types.patch (633 Bytes) redmine-2.5.1-mime-types.patch Patch for the issue Szilveszter Ördög, 2014-04-17 14:39
Actions

Also available in: Atom PDF