@@ -286,29 +286,29 @@ def annotate(klass, file, header, options={})
286
286
table_name = klass . table_name
287
287
model_file_name = File . join ( model_dir , file )
288
288
289
- if annotate_one_file ( model_file_name , info , options_with_position ( options , :position_in_class ) )
289
+ if annotate_one_file ( model_file_name , info , :position_in_class , options_with_position ( options , :position_in_class ) )
290
290
did_annotate = true
291
291
end
292
292
293
293
unless options [ :exclude_tests ]
294
294
did_annotate = TEST_PATTERNS .
295
295
map { |pat | [ pat [ 0 ] , resolve_filename ( pat [ 1 ] , model_name , table_name ) ] } .
296
296
map { |pat | find_test_file ( *pat ) } .
297
- map { |file | annotate_one_file ( file , info , options_with_position ( options , :position_in_test ) ) } .
297
+ map { |file | annotate_one_file ( file , info , :position_in_test , options_with_position ( options , :position_in_test ) ) } .
298
298
detect { |result | result } || did_annotate
299
299
end
300
300
301
301
unless options [ :exclude_fixtures ]
302
302
did_annotate = FIXTURE_PATTERNS .
303
303
map { |file | resolve_filename ( file , model_name , table_name ) } .
304
- map { |file | annotate_one_file ( file , info , options_with_position ( options , :position_in_fixture ) ) } .
304
+ map { |file | annotate_one_file ( file , info , :position_in_fixture , options_with_position ( options , :position_in_fixture ) ) } .
305
305
detect { |result | result } || did_annotate
306
306
end
307
307
308
308
unless options [ :exclude_factories ]
309
309
did_annotate = FACTORY_PATTERNS .
310
310
map { |file | resolve_filename ( file , model_name , table_name ) } .
311
- map { |file | annotate_one_file ( file , info , options_with_position ( options , :position_in_factory ) ) } .
311
+ map { |file | annotate_one_file ( file , info , :position_in_factory , options_with_position ( options , :position_in_factory ) ) } .
312
312
detect { |result | result } || did_annotate
313
313
end
314
314
0 commit comments