rack/rack — pull request #354 by benhamill (2012-03-04 03:27:45+00:00)
Title: Only remove a constant if it exists.

This is a modification of an earlier pull request #247. I'm sort of surprised that so many people typed the exact code I did here into comments on that thread, rather than forking and issuing a pull request themselves. So, uh... here's this. I think it fixes some problem people using 1.9.1 were having, but honestly I didn't test it; I just implemented what people said would fix their problem in comments. Would love some feedback if this should be done differently.