avoid crashes on activerecord 3.2, closes #5