Added changes from:

https://github.com/zdennis/activerecord-import/pull/104

To the changes made to upgrade to rails 4.