lib/elasticity/index_config.rb in es-elasticity-0.12.0 vs lib/elasticity/index_config.rb in es-elasticity-0.13.3.pre1

- old
+ new

@@ -8,11 +8,11 @@ "Therefore, doument-type based inheritance has been disabled by Elasticity" VERSION_FOR_SUBCLASS_WARNING = "6.0.0".freeze VERSION_FOR_SUBCLASS_ERROR = "7.0.0".freeze ATTRS = [ :index_base_name, :document_type, :mapping, :strategy, :subclasses, - :settings + :settings, :use_new_timestamp_format, :include_type_name_on_create ].freeze VALIDATABLE_ATTRS = [:index_base_name, :document_type, :strategy].freeze attr_accessor(*ATTRS) @@ -37,10 +37,11 @@ end def definition return @definition if defined?(@definition) @definition = { - settings: merge_settings, mappings: { @document_type => @mapping.nil? ? {} : @mapping.deep_stringify_keys } + settings: merge_settings, + mappings: { @document_type => @mapping.nil? ? {} : @mapping.deep_stringify_keys } } subclasses.each do |doc_type, subclass| @definition[:mappings][doc_type] = subclass.constantize.mapping end if subclasses.present? @definition