Replace `class_eval` with `define_method` for enum
Replace `class_eval` with `define_method` for enum

https://github.com/rails/rails/commit/db41eb8a6ea88b854bf5cd11070ea4245e1639c5#commitcomment-4502683

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