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



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

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

#rails_footnotes_before_filterObject



13
14
15
16
17
# File 'lib/rails-footnotes/extension.rb', line 13

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