lib/deepstream/list.rb in deepstream-0.2.6 vs lib/deepstream/list.rb in deepstream-0.2.7
- old
+ new
@@ -6,10 +6,10 @@
super
@data = []
end
def add(record_name)
- set(@data.length.to_s, record_name) unless @data.include?(record_name)
+ set(@data << record_name) unless @data.include?(record_name)
end
def read(version, data)
@version = version.to_i
data = JSON.parse(data)