FIX has_one embedded record

isAPIEnabled() now uses the class name instead of the relation name