rails/rails — pull request #12754 by ck3g (2013-11-04 14:44:37+00:00)
Title: Replace `class_eval` with `define_method` for enum

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