drnic / rails-footnotes

Every Rails page has footnotes that link give request information and link back to your source via TextMate [extracted from Rails TextMate bundle project]

josevalim (author)
Mon Dec 29 10:43:17 -0800 2008
commit  71faa2b5014db57a21f13aa64f96d23eadbc8111
tree    a90c2f1c9745e7ea0b267b39363fabaffd772515
parent  6c47af63a87a8165e35ded3ad3e285a20161d285
rails-footnotes / init.rb
100755 16 lines (15 sloc) 0.598 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Footnotes is divided in three main files:
#
# * initialiazer.rb: Initialize the plugin and apply the footnotes as an after_filter;
#
# * footnotes.rb: Is the core and adds the debug options at the bottom of each page;
#
# * backtracer.rb: Append links to tour favorite editor in backtrace pages.
#
if (ENV['RAILS_ENV'] == 'development')
  dir = File.dirname(__FILE__)
  require File.join(dir,'lib','footnotes')
  require File.join(dir,'lib','loader')
  require File.join(dir,'lib','backtracer')
 
  Footnotes::Filter.prefix ||= 'txmt://open?url=file://' if RUBY_PLATFORM.include?('darwin')
end