Sha256: a161bdd65a41295d81fc4265efc982f6c3688e87f7be81368d77fe3fe8d75e10
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
module Footnotes mattr_accessor :before_hooks @@before_hooks = [] mattr_accessor :after_hooks @@after_hooks = [] def self.before(&block) @@before_hooks << block end def self.after(&block) @@after_hooks << block end autoload :RailsFootnotesExtension, 'rails-footnotes/extension' def self.run! require 'rails-footnotes/footnotes' require 'rails-footnotes/backtracer' require 'rails-footnotes/abstract_note' require 'rails-footnotes/notes/all' ActionController::Base.send(:include, RailsFootnotesExtension) load Rails.root.join('.rails_footnotes') if Rails.root.join('.rails_footnotes').exist? #TODO DEPRECATED load Rails.root.join('.footnotes') if Rails.root.join('.footnotes').exist? end def self.setup yield self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-footnotes-3.7.9 | lib/rails-footnotes.rb |