Sha256: b2421c8c95838075ee3ea57995b777698ed81f2ac515df8fe99e38807a1f5c8a

Contents?: true

Size: 646 Bytes

Versions: 14

Compression:

Stored size: 646 Bytes

Contents

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

  # Load all notes
  #
  Dir[File.join(dir, 'rails-footnotes', '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

14 entries across 14 versions & 6 rubygems

Version Path
artofmission-rails-footnotes-3.6.0.1 lib/rails-footnotes.rb
ceritium-rails-footnotes-3.4.1.1 lib/rails-footnotes.rb
ceritium-rails-footnotes-3.4.1 lib/rails-footnotes.rb
ceritium-rails-footnotes-3.4 lib/rails-footnotes.rb
josevalim-rails-footnotes-3.4.1 lib/rails-footnotes.rb
josevalim-rails-footnotes-3.4 lib/rails-footnotes.rb
josevalim-rails-footnotes-3.5.0 lib/rails-footnotes.rb
josevalim-rails-footnotes-3.6.0 lib/rails-footnotes.rb
lexrupy-rails-footnotes-3.3.2 lib/rails-footnotes.rb
lexrupy-rails-footnotes-3.4.1 lib/rails-footnotes.rb
lexrupy-rails-footnotes-3.4 lib/rails-footnotes.rb
rails-footnotes-3.6.6 lib/rails-footnotes.rb
scharfie-rails-footnotes-3.5.0 lib/rails-footnotes.rb
scharfie-rails-footnotes-3.4.2 lib/rails-footnotes.rb