diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-04 00:26:27 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-09-04 00:34:21 -0700 |
commit | 94b7328b08fcc55e82bfcaa34a25ae718921ae1c (patch) | |
tree | 4665ff4721ec7e86675265fbbb232f4c39f70628 /activerecord/lib | |
parent | 316962d0922992fbe756521bd7c94a751aa1253e (diff) | |
download | rails-94b7328b08fcc55e82bfcaa34a25ae718921ae1c.tar.gz rails-94b7328b08fcc55e82bfcaa34a25ae718921ae1c.tar.bz2 rails-94b7328b08fcc55e82bfcaa34a25ae718921ae1c.zip |
Enums shouldn't ruin people's anniversaries
Added a few more methods on Module/Class to the dangerous class methods
blacklist. (Technically, allocate and new are already protected currently because
we happen to redefine them in the current implantation.)
Closes #16792
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index ceee96b3a8..43a3993898 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -31,7 +31,7 @@ module ActiveRecord end } - BLACKLISTED_CLASS_METHODS = %w(private public protected) + BLACKLISTED_CLASS_METHODS = %w(private public protected allocate new name parent superclass) class AttributeMethodCache def initialize |