check for ActiveRecord (to handle non AR apps)