lib/elasticsearch/model/naming.rb in elasticsearch-model-7.0.0.pre vs lib/elasticsearch/model/naming.rb in elasticsearch-model-7.0.0

- old
+ new

@@ -90,19 +90,10 @@ end private def implicit(prop) - value = nil - - if Elasticsearch::Model.settings[:inheritance_enabled] - self.ancestors.each do |klass| - next if klass == self - break if value = klass.respond_to?(prop) && klass.send(prop) - end - end - - value || self.send("default_#{prop}") + self.send("default_#{prop}") end def default_index_name self.model_name.collection.gsub(/\//, '-') end