Sha256: 238e9ff19d7d73e6048a67a06ce858b8f7960676e47d46c130d0f1fcda92992f
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
module MeiliSearch module Rails 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) .merge(client_agents: MeiliSearch::Rails.qualified_version) ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meilisearch-rails-0.7.2 | lib/meilisearch/rails/configuration.rb |
meilisearch-rails-0.7.1 | lib/meilisearch/rails/configuration.rb |