Fix failures related to enum changes
Fix failures related to enum changes

Commit 6e4a810f51b9ed2468b92247ef5568cc9d6dbcc0 changed the implementation
from class_eval to define_method, but missed the access to the constant
versus the access to the constant name.

kirs/rails-1,schuetzm/rails,illacceptanything/illacceptanything,arunagw/rails,Envek/rails,notapatch/rails,tgxworld/rails,pvalena/rails,georgeclaghorn/rails,illacceptanything/illacceptanything,schuetzm/rails,joonyou/rails,mijoharas/rails,esparta/rails,richseviora/rails,printercu/rails,voray/rails,arunagw/rails,deraru/rails,kachick/rails,notapatch/rails,mtsmfm/railstest,Sen-Zhang/rails,kmayer/rails,repinel/rails,koic/rails,bolek/rails,Stellenticket/rails,gavingmiller/rails,rails/rails,yalab/rails,felipecvo/rails,kamipo/rails,deraru/rails,gfvcastro/rails,tgxworld/rails,Stellenticket/rails,88rabbit/newRails,printercu/rails,mtsmfm/rails,pschambacher/rails,illacceptanything/illacceptanything,prathamesh-sonpatki/rails,yhirano55/rails,88rabbit/newRails,betesh/rails,Stellenticket/rails,fabianoleittes/rails,illacceptanything/illacceptanything,kddeisz/rails,Envek/rails,stefanmb/rails,bogdanvlviv/rails,printercu/rails,EmmaB/rails-1,kmcphillips/rails,rails/rails,pschambacher/rails,Vasfed/rails,printercu/rails,BlakeWilliams/rails,untidy-hair/rails,gfvcastro/rails,brchristian/rails,tjschuck/rails,betesh/rails,arunagw/rails,kddeisz/rails,mtsmfm/rails,kenta-s/rails,coreyward/rails,pvalena/rails,lucasmazza/rails,utilum/rails,marklocklear/rails,jeremy/rails,matrinox/rails,BlakeWilliams/rails,eileencodes/rails,arunagw/rails,mijoharas/rails,xlymian/rails,joonyou/rails,alecspopa/rails,voray/rails,prathamesh-sonpatki/rails,BlakeWilliams/rails,bogdanvlviv/rails,Edouard-chin/rails,eileencodes/rails,georgeclaghorn/rails,amoody2108/TechForJustice,vipulnsward/rails,yhirano55/rails,schuetzm/rails,rbhitchcock/rails,travisofthenorth/rails,iainbeeston/rails,alecspopa/rails,bolek/rails,riseshia/railsguides.kr,yasslab/railsguides.jp,yawboakye/rails,esparta/rails,MichaelSp/rails,illacceptanything/illacceptanything,kirs/rails-1,yhirano55/rails,notapatch/rails,richseviora/rails,palkan/rails,notapatch/rails,sergey-alekseev/rails,kddeisz/rails,gavingmiller/rails,lcreid/rails,Sen-Zhang/rails,Edouard-chin/rails,yasslab/railsguides.jp,ngpestelos/rails,palkan/rails,illacceptanything/illacceptanything,sergey-alekseev/rails,ttanimichi/rails,odedniv/rails,shioyama/rails,tjschuck/rails,repinel/rails,MSP-Greg/rails,tijwelch/rails,riseshia/railsguides.kr,kmcphillips/rails,assain/rails,MichaelSp/rails,vassilevsky/rails,utilum/rails,odedniv/rails,MSP-Greg/rails,Spin42/rails,gcourtemanche/rails,rafaelfranca/omg-rails,starknx/rails,hanystudy/rails,bogdanvlviv/rails,mtsmfm/railstest,alecspopa/rails,tjschuck/rails,illacceptanything/illacceptanything,rbhitchcock/rails,tjschuck/rails,ttanimichi/rails,stefanmb/rails,felipecvo/rails,aditya-kapoor/rails,travisofthenorth/rails,maicher/rails,brchristian/rails,bolek/rails,baerjam/rails,yalab/rails,vassilevsky/rails,ledestin/rails,shioyama/rails,shioyama/rails,yalab/rails,flanger001/rails,kenta-s/rails,baerjam/rails,yahonda/rails,jeremy/rails,mathieujobin/reduced-rails-for-travis,felipecvo/rails,assain/rails,repinel/rails,illacceptanything/illacceptanything,starknx/rails,mathieujobin/reduced-rails-for-travis,Edouard-chin/rails,kachick/rails,yahonda/rails,illacceptanything/illacceptanything,mtsmfm/rails,lcreid/rails,deraru/rails,palkan/rails,maicher/rails,lcreid/rails,ledestin/rails,rbhitchcock/rails,samphilipd/rails,vassilevsky/rails,kirs/rails-1,vipulnsward/rails,Envek/rails,Edouard-chin/rails,tgxworld/rails,gauravtiwari/rails,88rabbit/newRails,elfassy/rails,MSP-Greg/rails,rafaelfranca/omg-rails,rails/rails,prathamesh-sonpatki/rails,betesh/rails,pschambacher/rails,ledestin/rails,kddeisz/rails,Spin42/rails,yalab/rails,amoody2108/TechForJustice,mechanicles/rails,georgeclaghorn/rails,koic/rails,mechanicles/rails,rails/rails,samphilipd/rails,lucasmazza/rails,illacceptanything/illacceptanything,aditya-kapoor/rails,Stellenticket/rails,maicher/rails,jeremy/rails,BlakeWilliams/rails,sealocal/rails,bradleypriest/rails,koic/rails,Vasfed/rails,illacceptanything/illacceptanything,eileencodes/rails,travisofthenorth/rails,kamipo/rails,mtsmfm/railstest,odedniv/rails,EmmaB/rails-1,baerjam/rails,rossta/rails,Envek/rails,ngpestelos/rails,bradleypriest/rails,yawboakye/rails,yasslab/railsguides.jp,shioyama/rails,esparta/rails,mohitnatoo/rails,kmcphillips/rails,untidy-hair/rails,gavingmiller/rails,mohitnatoo/rails,mohitnatoo/rails,kmayer/rails,coreyward/rails,tijwelch/rails,utilum/rails,Vasfed/rails,arjes/rails,kaspth/rails,kamipo/rails,ttanimichi/rails,assain/rails,untidy-hair/rails,marklocklear/rails,mechanicles/rails,fabianoleittes/rails,Erol/rails,arjes/rails,yasslab/railsguides.jp,yawboakye/rails,Erol/rails,MSP-Greg/rails,yawboakye/rails,Sen-Zhang/rails,betesh/rails,prathamesh-sonpatki/rails,georgeclaghorn/rails,gauravtiwari/rails,aditya-kapoor/rails,mathieujobin/reduced-rails-for-travis,gfvcastro/rails,hanystudy/rails,esparta/rails,utilum/rails,mohitnatoo/rails,illacceptanything/illacceptanything,elfassy/rails,yahonda/rails,gfvcastro/rails,deraru/rails,kaspth/rails,kenta-s/rails,rossta/rails,bradleypriest/rails,brchristian/rails,yahonda/rails,matrinox/rails,tijwelch/rails,schuetzm/rails,kachick/rails,starknx/rails,xlymian/rails,lcreid/rails,hanystudy/rails,iainbeeston/rails,coreyward/rails,jeremy/rails,rossta/rails,illacceptanything/illacceptanything,joonyou/rails,marklocklear/rails,untidy-hair/rails,kmcphillips/rails,stefanmb/rails,Erol/rails,pvalena/rails,tgxworld/rails,fabianoleittes/rails,ngpestelos/rails,yhirano55/rails,fabianoleittes/rails,mijoharas/rails,vipulnsward/rails,repinel/rails,flanger001/rails,vipulnsward/rails,gcourtemanche/rails,arjes/rails,matrinox/rails,kmayer/rails,richseviora/rails,voray/rails,samphilipd/rails,baerjam/rails,kaspth/rails,riseshia/railsguides.kr,bogdanvlviv/rails,rafaelfranca/omg-rails,flanger001/rails,lucasmazza/rails,iainbeeston/rails,pvalena/rails,assain/rails,eileencodes/rails,palkan/rails,MichaelSp/rails,Vasfed/rails,gcourtemanche/rails,iainbeeston/rails,Spin42/rails,xlymian/rails,sealocal/rails,riseshia/railsguides.kr,elfassy/rails,flanger001/rails,mechanicles/rails,sergey-alekseev/rails,aditya-kapoor/rails,amoody2108/TechForJustice,travisofthenorth/rails,gauravtiwari/rails,EmmaB/rails-1,Erol/rails,illacceptanything/illacceptanything,sealocal/rails,joonyou/rails,illacceptanything/illacceptanything