rails/rails — pull request #9797 by choudhuryanupam (2013-03-19 08:24:45+00:00)
Title: Wrong variable used inside the block

The method #insert_record should use the loop variable as the argument.