lib/inquisitio/document.rb in inquisitio-0.1.5 vs lib/inquisitio/document.rb in inquisitio-0.1.6
- old
+ new
@@ -5,10 +5,10 @@
attr_reader :type, :id, :version, :fields
def initialize(type, id, version, fields)
@type = type
@id = id
@version = version
- @fields = fields.reject! {|k,v| v.nil?}
+ @fields = fields.reject {|k,v| v.nil?}
end
def to_SDF
<<-EOS
{ "type": "#{type}",