I agree with stellarose. I think that whole thing started because people who eat before right bed usually haven't eaten all day and tend to overeat, or they're late night snacking
after they've eaten all their calories.
I think there was a study done (I forget where and when, it was a while ago but this particular one stands out) that concluded that people who ate 2000 calories spread throughout the day had no relevant change in weight when compared to people who ate all of their 2000 allotted calories in one meal at the end of the day...because both groups only ate 2000 calories.
It doesn't matter when you eat, just be mindful you aren't overeating because you ate late and are starving.
Also, growth hormone (the anabolic, muscle building hormone - ie: weight loss friendly hormone) is secreted in its highest levels when we sleep or around 2-3am (and after a strength training workout). Insulin and growth hormone are antagonistic hormones (bind to the same receptor), so if you eat late at night and then sleep the insulin secreted from your meal can interfere with the growth hormone.
Basically, try to avoid your carbs as much as possible if you're eating later/right before bed at night to keep your insulin levels down so you can reap all the benefits of growth hormone.