Extend dangerous attribute methods with dangerous methods from Object by fatkodima · Pull Request #45883 · rails/rails

Fixes #45879 (see there for more details). Another option would be not to exclude the methods that were inherited, but then have a small exclusion list for Object methods that are unlikely to be a...