From 4ae2065e9204d39f8ab16df9e6b6b6b187220f87 Mon Sep 17 00:00:00 2001 From: Dmitry Polushkin Date: Tue, 27 Sep 2016 16:56:30 +0100 Subject: [PATCH] Use default indices_path path (#433) Once I run `rake chewy:reset` it raised an error with: ``` TypeError: no implicit conversion of nil into String ``` Once I set `indices_path` in a chewy.yml file then this issue was solved. Since this change now `indices_path` used by default, so you don't need to set it through chewy.yml. --- lib/chewy/config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/chewy/config.rb b/lib/chewy/config.rb index 25c206f92..65a482270 100644 --- a/lib/chewy/config.rb +++ b/lib/chewy/config.rb @@ -112,6 +112,7 @@ def transport_tracer=(tracer) def configuration yaml_settings.merge(settings.deep_symbolize_keys).tap do |configuration| configuration[:logger] = transport_logger if transport_logger + configuration[:indices_path] = indices_path if indices_path configuration.merge!(tracer: transport_tracer) if transport_tracer end end