The Summa Theologiae was for the use of students in theology - perhaps you're thinking of the Summa de veritate catholicae fidei contra gentiles?
That summa was not only for their use, it was for all Catholics. Where does St. Thomas have to instruct either his theological students or the common layman about same-sex marriage?