Module: Footnotes::RailsFootnotesExtension

Extended by:
ActiveSupport::Concern
Defined in:
lib/rails-footnotes/extension.rb

Instance Method Summary collapse

Instance Method Details

#rails_footnotes_after_filterObject


24
25
26
27
28
29
30
# File 'lib/rails-footnotes/extension.rb', line 24

def rails_footnotes_after_filter
  if Footnotes.enabled?(self)
    filter = Footnotes::Filter.new(self)
    filter.add_footnotes!
    filter.close!(self)
  end
end

#rails_footnotes_before_filterObject


18
19
20
21
22
# File 'lib/rails-footnotes/extension.rb', line 18

def rails_footnotes_before_filter
  if Footnotes.enabled?(self)
    Footnotes::Filter.start!(self)
  end
end