Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7707 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Replace hard coded mime types with Mime::Type constants

Reported by: dkubb Assigned to: core
Priority: normal Milestone: 1.x
Component: ActionPack Version: edge
Severity: minor Keywords: MIME
Cc:

Description

This patch replaces the hard coded mime types with the appropriate Mime::* constant.

It seemed like there was some inconsistency in the code base. Some places (newer code mostly) would use the constants, while others had the string hard coded.

The only place I wasn't sure about was replace with constants was in the test cases. If anyone thinks this should be done I will resubmit the patch with them included.

Attachments

mime_constants.patch (10.4 kB) - added by dkubb on 03/04/07 05:28:54.

Change History

03/04/07 05:28:54 changed by dkubb

  • attachment mime_constants.patch added.

03/04/07 05:32:17 changed by dkubb

  • type changed from defect to enhancement.

03/06/07 09:46:20 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.x.