public
Fork of drnic/rails-footnotes
Description: Every Rails page has footnotes that link give request information and link back to your source via TextMate [extracted from Rails TextMate bundle project]
Homepage:
Clone URL: git://github.com/mhartl/rails-footnotes.git
Changed 'initializer' to 'loader' to fix an Ultrasphinx incompatibility
Ultrasphinx tries to look for rails/railties/lib/initializer.rb but finds 
the
one in footnotes, resulting in this error:

activesupport/lib/active_support/dependencies.rb:275:in 
`load_missing_constant':
uninitialized constant Footnotes::Filter (NameError)
Michael Hartl (author)
Mon Jul 14 17:36:18 -0700 2008
commit  9bf8344b2d9ece09ff301dfc4e500e00fd46b9bc
tree    8da542530bfb2f0de62006ed439095e8fac1a1e4
parent  15e2cb7661a752659bb057ae13df57a07fce55fe
...
36
37
38
39
 
40
41
42
...
36
37
38
 
39
40
41
42
0
@@ -36,7 +36,7 @@ Remember that in Rails 1.x, after filters appear first than before filters in th
0
 Usage
0
 =====
0
 
0
-* Footnotes are applied in all actions under development. If You want to change this behaviour, check the initializer.rb file.
0
+* Footnotes are applied in all actions under development. If You want to change this behaviour, check the loader.rb file.
0
 
0
 * Some features only work by default if you are under MacOSX and using Textmate.
0
   If your editor supports out-of-the-box opening files like Textmate, e.g. txmt://open?url=file://path/to/file, you can put in your environment file the following line:
...
9
10
11
12
 
13
14
15
...
9
10
11
 
12
13
14
15
0
@@ -9,7 +9,7 @@
0
 if (ENV['RAILS_ENV'] == 'development')
0
   dir = File.dirname(__FILE__)
0
   require File.join(dir,'lib','footnotes')
0
-  require File.join(dir,'lib','initializer')
0
+  require File.join(dir,'lib','loader')
0
   require File.join(dir,'lib','backtracer')
0
 
0
   Footnotes::Filter.prefix ||= 'txmt://open?url=file://' if RUBY_PLATFORM.include?('darwin') 

Comments