lib/esse/index/settings.rb in esse-0.2.0 vs lib/esse/index/settings.rb in esse-0.2.2

- old
+ new

@@ -26,19 +26,19 @@ # settings do # # do something to load settings.. # end # end def settings(hash = {}, &block) - @setting = Esse::IndexSetting.new(body: hash, paths: template_dirs, globals: -> { cluster.index_settings }) + @setting = Esse::IndexSetting.new(body: hash, paths: template_dirs, globals: -> { cluster.settings }) return unless block @setting.define_singleton_method(:to_h, &block) end private def setting - @setting ||= Esse::IndexSetting.new(paths: template_dirs, globals: -> { cluster.index_settings }) + @setting ||= Esse::IndexSetting.new(paths: template_dirs, globals: -> { cluster.settings }) end end extend ClassMethods end