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
rails-footnotes / lib / loader.rb
100755 14 lines (13 sloc) 0.437 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Load all notes
#
Dir[File.join(File.dirname(__FILE__),'notes','*.rb')].each do |note|
  require note
end
 
# The footnotes are applied by default to all actions. You can change this
# behavior commenting the after_filter line below and putting it in Your
# application. Then you can cherrypick in which actions it will appear.
#
class ActionController::Base
  prepend_before_filter Footnotes::Filter
  after_filter Footnotes::Filter
end