do not crash when ActiveRecord isn't loaded
Merge remote-tracking branch 'korny/dont-expect-active-record'