A pit bull named Ruby is on her way to recovery after a South Philly man beat her with a baseball bat and is now ordered to complete a rehab program to teach him a lesson

Andrew Wallace, 41, of South Philly, was ordered Friday to complete an Accelerated Rehabilitative Disposition (ARD) program after he was charged with cruelty to animals, simple assault and possession of an instrument of crime, according to a Pennsylvania SPCA spokeswoman.

RELATED: Two men charged for separate dog cruelty cases 

Police say, back In September, he beat his ex-girlfriend’s dog with a baseball bat in a fit of rage. He’ll be spending the next 18 months in the ARD program to prevent future incidents and was ordered to pay a $2,500 fine, as well as enroll in anger management classes.

Photographs of Ruby show her hind leg in a cast.

“That monetary figure will be utilized to help pay for the treatment of this dog,” Gillian Kocher, a spokeswoman for the SPCA told Metro Friday.

RELATED: Bronx man sentenced to year of jail for beating 4-year old puppy 

“She’s currently undergoing treatment to recover fully and go on to live a long, happy life.

“Hopefully Wallace will certainly prove to educate not only himself, but others, that it’s not a way to treat an animal and that there are penalties for this type of action. Ruby has been with her mom back at home.”