Lancashire pony beaten by owner now helps children at riding school