Divine Companion (3.5e Feat)
From D&D Wiki
 Divine Companion [Divine, Animal Companion]
Your animal companion becomes a celestial or fiendish creature.
Prerequisite: Turn or Rebuke Undead, Animal Companion
Benefit: Your animal companion gains the celestial template, if you normally turn undead, or the fiendish template, if you rebuke undead. Your effective Cleric level to Turn/Rebuke Undead stacks with your Ranger or Druid level to determine the strength of your animal companion. (unless they are both granted by the same class, such as by a Shaman from Oriental adventures)