public
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]
Clone URL: git://github.com/drnic/rails-footnotes.git
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