Permalink
Browse files

[^] Controller extension has been extracted to separate ifle

  • Loading branch information...
1 parent 28c169d commit a6fd9784a7fea60a9636a8c48804de6ba43efef6 @romanvbabenko romanvbabenko committed Apr 25, 2012
Showing with 9 additions and 10 deletions.
  1. +1 −10 lib/rails-footnotes.rb
  2. +8 −0 lib/rails-footnotes/extension.rb
View
@@ -13,16 +13,7 @@ def self.after(&block)
@@after_hooks << block
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.
- #
- module RailsFootnotesExtension
- def self.included(base)
- base.prepend_before_filter Footnotes::BeforeFilter
- base.after_filter Footnotes::AfterFilter
- end
- end
+ autoload :RailsFootnotesExtension, 'rails-footnotes/extension'
def self.run!
require 'rails-footnotes/footnotes'
@@ -0,0 +1,8 @@
+module Footnotes
+ module RailsFootnotesExtension
+ def self.included(base)
+ base.prepend_before_filter Footnotes::BeforeFilter
+ base.after_filter Footnotes::AfterFilter
+ end
+ end
+end

2 comments on commit a6fd978

Just curious, what does [^] indicate in your git commits? [-] and [+] I'm assuming are feature removals/additions

Collaborator

romanvbabenko replied Jan 2, 2013

[^] - changes

Please sign in to comment.