rails/rails — pull request #16325 by eileencodes (2014-07-28 22:49:57+00:00)
Title: System should not be an allowed enum name

Using an enum name of `system` can cause problems with `Kernel#system` which is dangerous and things could get weird. This adds `system` to the blacklisted class methods. The `detect_enum_conflict` method wasn't checking `enum_name` just the `method_name`.

I also updated the tests to include `system`.

Fixes #16288