lib/indexers/configuration.rb in indexers-5.1.0 vs lib/indexers/configuration.rb in indexers-5.1.1
- old
+ new
@@ -5,18 +5,18 @@
def mappings(&block)
if block_given?
@mappings = Dsl::Api.new(&block).to_h
else
- @mappings
+ @mappings ||= {}
end
end
def analysis(&block)
if block_given?
@analysis = { analysis: Dsl::Api.new(&block).to_h }
else
- @analysis
+ @analysis ||= {}
end
end
def suggestions(&block)
if block_given?