Indianapolis Mayor Greg Ballard has weighed in on a baker's refusal to sell gay cupcakes.

The co-owner of Just Cookies, which is located inside the publicly-owned City Market, refused an order for gay cupcakes from Indiana University-Purdue University at Indianapolis (IUPUI) students last week.

The students were first told they could not order cupcakes for an October 11 National Coming Out Day event because the bakery only sells cookies, but when students asked for rainbow-frosted cookies, they were told to go elsewhere.

“I explained we're a family-run business, we have two young, impressionable daughters and we thought maybe it was best not do that,” David Stockton, co-owner of the bakery, told a reporter.

Stockton then likened colorful cupcakes to something obscene.

“We have our values, and you know, some things … for instance, if someone wants a cookie with an obscenity, well, we're not going to sell that,” he said.

A spokesman for Mayor Ballard said the city was looking into the matter, the Indianapolis Star reported.

“The mayor was certainly dismayed and wants to make it clear that a person's values, morality and personal beliefs are absolutely not relevant to making a purchase at the City Market,” the spokesman said.

The students have placed their order with another bakery.