lib/fit_parser/file/data.rb in fit_parser-0.0.6 vs lib/fit_parser/file/data.rb in fit_parser-0.0.7
- old
+ new
@@ -16,10 +16,10 @@
def record_type
:#{type}
end
RUBY
- definition.fields.each do |field|
+ definition.fields_arr.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' && field.size > field.length
code << "array :#{field.raw_name}, :type => :#{field.type}, :initial_length => #{field.size/field.length}\n"