<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,20 +1,20 @@
 # We can split Footnotes in four files:
 #
-# * Textmate footnotes: Is the core and adds the debug options at the bottom of
-#   each page;
+# * textmate_footnotes.rb: Is the core and adds the debug options at the bottom
+#   of each page;
 #
-# * Textmate intialiaze: Initialize the plugin and apply the footnotes as an
+# * textmate_initialiaze.rb: Initialize the plugin and apply the footnotes as an
 #   after_filter;
 #
-# * Textmate links: Provides links to open controller, layout, view and asset
+# * textmate_links.rb: Provides links to open controller, layout, view and asset
 #   files in textmate;
 #
-# * Textmate backtracer: Append links to Textmate in backtrace pages. 
+# * textmate_backtracer.rb: Append links to Textmate in backtrace pages. 
 #
 # The footnotes are applied in all actions under development. If You want to
 # change this behaviour, check the textmate_initialize.rb file.
 #
-# And by default, the last two files are only loaded in MacOSX, but if Your
+# And by default, the last two files are only performed in MacOSX. If Your
 # editor support opening files like Textmate, e.g. txmt://open?url=file://, You
 # can put in Your environment file the following line:
 #
@@ -29,10 +29,11 @@ if (ENV['RAILS_ENV'] == 'development')
   # Windows doesn't have 'uname', so rescue false
   ::MAC_OS_X = (`uname`.chomp == 'Darwin') rescue false
   require 'textmate_footnotes'
+  require 'textmate_links'
   require 'textmate_initialize'
 
   if ::MAC_OS_X
+    FootnotesFilter.textmate_prefix = 'txmt://open?url=file://'
     require 'textmate_backtracer' unless Rails::VERSION::MAJOR &lt; 2
-    require 'textmate_links'
   end
 end
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
-class FootnoteFilter
+class FootnotesFilter
   cattr_accessor :no_style
   self.no_style = false
 
   def self.filter(controller)
-    filter = FootnoteFilter.new(controller)
+    filter = FootnotesFilter.new(controller)
     filter.add_footnotes!
   end
 
@@ -17,7 +17,7 @@ class FootnoteFilter
   def add_footnotes!
     if performed_render? and first_render?
       if ['html','rhtml','xhtml','rxhtml'].include?(template_format.to_s) &amp;&amp; (content_type =~ /html/ || content_type.nil?) &amp;&amp; !@controller.request.xhr?
-        insert_styles unless FootnoteFilter.no_style
+        insert_styles unless FootnotesFilter.no_style
         insert_footnotes
       end
     end
@@ -72,7 +72,7 @@ class FootnoteFilter
     &lt;!-- Footnotes --&gt;
     &lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;
     &lt;div id=&quot;tm_footnotes_debug&quot;&gt;
-      #{textmate_links if ::MAC_OS_X}
+      #{textmate_links if FootnotesFilter.textmate_prefix}
       Show:
       &lt;a href=&quot;#&quot; onclick=&quot;#{tm_footnotes_toggle('session_debug_info')};return false&quot;&gt;Session&lt;/a&gt; |
       &lt;a href=&quot;#&quot; onclick=&quot;#{tm_footnotes_toggle('cookies_debug_info')};return false&quot;&gt;Cookies&lt;/a&gt; |</diff>
      <filename>lib/textmate_footnotes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@
 # to keep such only-development-code in the middle of Your application).
 #
 class ActionController::Base
-  after_filter FootnoteFilter
+  after_filter FootnotesFilter
 end
 
 # Add routes config</diff>
      <filename>lib/textmate_initialize.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,9 +11,8 @@ class String
   end
 end
 
-class FootnoteFilter
+class FootnotesFilter
   cattr_accessor :textmate_prefix
-  self.textmate_prefix = 'txmt://open?url=file://'
 
   # Some controller classes come with the Controller:: module and some don't
   # (anyone know why? -- Duane)
@@ -54,7 +53,7 @@ class FootnoteFilter
     escape(
       textmate_prefix +
       controller_filename +
-      (index_of_method ? &quot;&amp;line=#{controller_line_number + 1}&amp;column=3&quot; : &quot;&quot;)
+      (index_of_method ? &quot;&amp;line=#{controller_line_number + 1}&amp;column=3&quot; : '')
     )
   end
 
@@ -73,9 +72,9 @@ class FootnoteFilter
       &lt;a href=&quot;#{view_url}&quot;&gt;View&lt;/a&gt; |
       &lt;a href=&quot;#{layout_url}&quot;&gt;Layout&lt;/a&gt;
     HTML
-    html += asset_file_links(&quot;Stylesheets&quot;, stylesheet_files) unless stylesheet_files.blank?
-    html += asset_file_links(&quot;Javascripts&quot;, javascript_files) unless javascript_files.blank?
-    html += &quot;&lt;br/&gt;&quot;
+    html += asset_file_links('Stylesheets', stylesheet_files) unless stylesheet_files.blank?
+    html += asset_file_links('Javascripts', javascript_files) unless javascript_files.blank?
+    html += '&lt;br/&gt;'
     return html
   end
 </diff>
      <filename>lib/textmate_links.rb</filename>
    </modified>
    <modified>
      <diff>@@ -50,7 +50,7 @@ class MockRequest &lt; OpenStruct.new(:xhr)
   alias_method :xhr?, :xhr
 end
 
-class FootnoteFilter
+class FootnotesFilter
   def controller_filename
     __FILE__
   end</diff>
      <filename>test/mock_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ $html = DATA.read
 class TextmateFootnotesTest &lt; Test::Unit::TestCase
   def setup
     @controller = MockController.new $html.dup
-    @footnote = FootnoteFilter.new(@controller)
+    @footnote = FootnotesFilter.new(@controller)
   end
 
   def test_mock_controller</diff>
      <filename>test/textmate_footnotes_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>93292a6712d61df99c0f4ee94f138b99d833f713</id>
    </parent>
  </parents>
  <author>
    <name>Jose' Valim</name>
    <email>jose.valim@gmail.com</email>
  </author>
  <url>http://github.com/mhartl/rails-footnotes/commit/bfd9f19f6ac3acedf080872efb1b531c9d0fbbc9</url>
  <id>bfd9f19f6ac3acedf080872efb1b531c9d0fbbc9</id>
  <committed-date>2008-05-12T06:22:22-07:00</committed-date>
  <authored-date>2008-05-12T06:22:22-07:00</authored-date>
  <message>Using now FootnotesFilter (with s) and textmate_prefix bug fix.</message>
  <tree>6e3759ab8fbdaeb1b31db9eab79470a7f2a7509d</tree>
  <committer>
    <name>Jose' Valim</name>
    <email>jose.valim@gmail.com</email>
  </committer>
</commit>
