Fix 'wrong constant name' error (Rails 4.1.0beta1)