Module: RsolrFootnotes
- Defined in:
- lib/rsolr-footnotes.rb,
lib/rsolr-footnotes/railtie.rb
Defined Under Namespace
Classes: Railtie
Class Method Summary collapse
-
.load! ⇒ Object
Load the plugin and footnote pane.
-
.setup_rsolr_notifications! ⇒ Object
Inject notifications into RSolr.
Class Method Details
.load! ⇒ Object
Load the plugin and footnote pane
9 10 11 12 |
# File 'lib/rsolr-footnotes.rb', line 9 def self.load! Dir[File.join(File.dirname(__FILE__), 'notes', '*.rb')].each { |note| require note } self.setup_rsolr_notifications! end |
.setup_rsolr_notifications! ⇒ Object
Inject notifications into RSolr
15 16 17 18 19 20 |
# File 'lib/rsolr-footnotes.rb', line 15 def self.setup_rsolr_notifications! require 'rsolr-ext/notifications' RSolr::Client.send(:include, RSolr::Ext::Notifications) RSolr::Client.enable_notifications! end |