16 17 18 19 20 21 22
# File 'lib/rails-footnotes/extension.rb', line 16 def rails_footnotes_after_filter return unless Footnotes.enabled?(self) filter = Footnotes::Filter.new(self) filter.add_footnotes! filter.close!(self) end
12 13 14
# File 'lib/rails-footnotes/extension.rb', line 12 def rails_footnotes_before_filter Footnotes::Filter.start!(self) if Footnotes.enabled?(self) end