Regardless of the quote's origins, I thought about this idea the other day when someone explained how she changed her diet by changing her shopping habits. That's a pretty good example of the idea in action.
I struggled with a similar problem. Snacks never lasted overnight in my apartment. If I bought a big bag of cookies, it was gone within hours of its opening. After several years of trying to control myself- with various levels of success- I simply stopped buying those items.