Class: Realm::Elasticsearch::Plugin
- Inherits:
-
Plugin
- Object
- Plugin
- Realm::Elasticsearch::Plugin
- Defined in:
- lib/realm/elasticsearch/plugin.rb
Class Method Summary collapse
Class Method Details
.setup(config, container) ⇒ Object
6 7 8 9 10 |
# File 'lib/realm/elasticsearch/plugin.rb', line 6 def self.setup(config, container) return unless config.persistence_gateway[:type] == :elasticsearch container.register_factory(Gateway, **config.persistence_gateway, as: 'persistence.gateway') end |