Fix for ruby 1.9 and constant re-assignment.

Hey, it worked in ruby 2, srs.