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



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

#rails_footnotes_before_filterObject



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