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

Changeset 5623

Show
Ignore:
Timestamp:
11/24/06 16:35:00 (2 years ago)
Author:
xal
Message:

Added CSV to Mime::SET so that respond_to csv will work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r5622 r5623  
    11*SVN* 
     2 
     3* Added CSV to Mime::SET so that respond_to csv will work [Cody Fauser] 
    24 
    35* Fixed that HEAD should return the proper Content-Length header (that is, actually use @body.size, not just 0) [DHH] 
  • trunk/actionpack/lib/action_controller/mime_type.rb

    r5620 r5623  
    142142  YAML  = Type.new "application/x-yaml", :yaml, %w( text/yaml ) 
    143143 
    144   SET   = [ ALL, TEXT, HTML, JS, ICS, XML, RSS, ATOM, YAML
     144  SET   = [ ALL, TEXT, HTML, JS, ICS, XML, RSS, ATOM, YAML, CSV
    145145 
    146146  LOOKUP = Hash.new { |h, k| h[k] = Type.new(k) unless k == "" }