Neither the state, nor any county, township, school district or municipality shall loan or give its credit or make donations to or in aid of any railroad or telegraph line; provided, that this section shall not apply to obligations of any county, city, township or school district, contracted prior to the adoption of this constitution.