Sha256: 08c178eecb59118fc963a756ce4cf3a96d218437cc41fce8045b1a03c82d9d8f

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

if RAILS_ENV == 'development'
  dir = File.dirname(__FILE__)
  require File.join(dir, 'footnotes', 'footnotes')
  require File.join(dir, 'backtracer', 'backtracer')

  # Load all notes
  #
  Dir[File.join(dir, 'notes', '*.rb')].each do |note|
    require note
  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.
  #
  class ActionController::Base
    prepend_before_filter Footnotes::Filter
    after_filter Footnotes::Filter
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
josevalim-rails-footnotes-3.3.2 lib/rails-footnotes.rb