lib/elasticity/base_document.rb in es-elasticity-0.5.2 vs lib/elasticity/base_document.rb in es-elasticity-0.6.0

- old
+ new

@@ -6,10 +6,10 @@ class_attribute :config # Configure the given klass, changing default parameters and resetting # some of the internal state. def self.configure(&block) - self.config = IndexConfig.new(Elasticity.config, &block) + self.config = IndexConfig.new(Elasticity.config, self.name.underscore, &block) end # Define common attributes for all documents attr_accessor :_id, :highlighted, :_score