<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1 @@
-# Include hook code here
+require 'railsdebugbar'</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,16 @@
-# Railsdebugbar
+class RailsDebugBar
+	def self.filter(controller)
+		content_type = controller.response.content_type
+		return unless content_type =~ /html/
+		
+		body = controller.response.body
+		
+		insertpoint = (body =~ /&lt;\/body&gt;/)
+		if insertpoint.nil?
+			insertpoint = -1
+		end
+		
+		bar = &quot;DEBUG&quot;
+		controller.response.body = body.insert(insertpoint, bar)
+	end
+end
\ No newline at end of file</diff>
      <filename>lib/railsdebugbar.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0a7a024419646d13ade713a576c9fc9c172a0e15</id>
    </parent>
  </parents>
  <author>
    <name>Bryce Kerley</name>
    <email>bkerley@brycekerley.net</email>
  </author>
  <url>http://github.com/bkerley/railsdebugbar/commit/9d5e9653555c42da72ac90668018470a8deb8fe3</url>
  <id>9d5e9653555c42da72ac90668018470a8deb8fe3</id>
  <committed-date>2008-09-20T18:24:38-07:00</committed-date>
  <authored-date>2008-09-20T18:24:38-07:00</authored-date>
  <message>stub</message>
  <tree>4715d504af87b77cb13df0e685b9fa178844af5d</tree>
  <committer>
    <name>Bryce Kerley</name>
    <email>bkerley@brycekerley.net</email>
  </committer>
</commit>
