lib/fit/file/data.rb in fit-parser-0.0.2 vs lib/fit/file/data.rb in fit-parser-0.0.3

- old
+ new

@@ -17,10 +17,10 @@ def record_type :#{type} end RUBY - definition.fields.each do |field| + definition.fit_fields.each do |field| code = "" # in case the field size is a multiple of the field length, we must build an array if (field.type != "string" and field.size > field.length) code << "array :#{field.raw_name}, :type => :#{field.type}, :initial_length => #{field.size/field.length}\n"