fix: only worked for models that extended active record directly.  changed dependency checking so it doesn't fail with other extended classes.