Sha256: 7952bcb6c775a9b8185f862d11c7f12a76fec80e49ea7971fdcc7bdf5f61228c
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
module MeiliSearch module Configuration def configuration raise NotConfigured if @_config.blank? @_config end def configuration=(configuration) @_config = configuration end def client ::MeiliSearch::Client.new( configuration[:meilisearch_host] || 'http://localhost:7700', configuration[:meilisearch_api_key], configuration.slice(:timeout, :max_retries) ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
meilisearch-rails-0.4.1 | lib/meilisearch/configuration.rb |
meilisearch-rails-0.4.0 | lib/meilisearch/configuration.rb |
meilisearch-rails-0.3.0 | lib/meilisearch/configuration.rb |