It's not an idiom*. I could mean one of two things:
1 It was in church that I decided to stop eating
2 I gave up [the practice of] eating in church
I'd guess that the 2nd is the more likely of the two, but it'd depend on context.
*ps (at least, not one I've met in a lifetime spent mostly in the South of England)
- For Teachers