Skip to content

Commit

Permalink
Use default indices_path path (#433)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dmitry authored and pyromaniac committed Sep 27, 2016
1 parent 1666e99 commit 4ae2065
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/chewy/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ae2065

Please sign in to comment.