<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,6 +24,7 @@ module Mime
   LOOKUP           = Hash.new { |h, k| h[k] = Type.new(k) unless k.blank? }
 
   def self.[](type)
+    return type if type.is_a?(Type)
     Type.lookup_by_extension(type.to_s)
   end
 </diff>
      <filename>actionpack/lib/action_dispatch/http/mime_type.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,8 @@
 module ActionView #:nodoc:
   class TextTemplate &lt; String #:nodoc:
-    def initialize(string, content_type = Mime[:html])
+    HTML = Mime[:html]
+
+    def initialize(string, content_type = HTML)
       super(string.to_s)
       @content_type = Mime[content_type] || content_type
     end</diff>
      <filename>actionpack/lib/action_view/template/text.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0b2dd7afd9ee1dfe46506f9d745afb0a23e496ba</id>
    </parent>
  </parents>
  <author>
    <name>Yehuda Katz</name>
    <email>wycats@gmail.com</email>
  </author>
  <url>http://github.com/samgranieri/rails/commit/c5e73b897616049c613b0331dd53e88dbc9c1532</url>
  <id>c5e73b897616049c613b0331dd53e88dbc9c1532</id>
  <committed-date>2009-10-28T00:13:08-07:00</committed-date>
  <authored-date>2009-10-28T00:13:08-07:00</authored-date>
  <message>Reduce TextTemplate cost for simple cases</message>
  <tree>15e013b08c1a73356bab0aee2cdfe7c727072352</tree>
  <committer>
    <name>Yehuda Katz</name>
    <email>wycats@gmail.com</email>
  </committer>
</commit>
