This should work, since it compacts the records before calling prepopulate_method_name.  Your version is just as correct though.