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

- old
+ new

@@ -10,10 +10,10 @@ def self.configure(&block) self.config = IndexConfig.new(Elasticity.config, self.name.underscore, &block) end # Define common attributes for all documents - attr_accessor :_id, :highlighted, :_score + attr_accessor :_id, :highlighted, :_score, :sort def attributes=(attributes) attributes.each do |attr, value| self.public_send("#{attr}=", value) end