I was brought up never to mention such distasteful bodily functions, just to mutter a quick apology and leave the room. If an unpleasant aroma suddenly filled the room and no-one apologised, my father would always know which of us was the culprit, and he would say, "X, I think you need to go to the toilet." I would be bewildered because I felt I had no need of the toilet, but we all knew better than to argue.
Years later I met my DH, whose family was much more relaxed in this department and I learnt to have a sense of humour about such things. It was my DH who taught me this little ditty:
Beans, beans, good for the heart.
The more you eat, the more you fart.
The more you fart, the better you feel,
So let's have beans for every meal!