diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-15 17:58:09 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-15 18:07:13 +0900 |
commit | ce48b5a366482d4b4c4c053e1e39e79d71987197 (patch) | |
tree | ec6c896a4f279206deede9281d64a5985f8a52fb /activesupport/test/notifications_test.rb | |
parent | d57841b5c453370598f00dccd68000ae18c9ef58 (diff) | |
download | rails-ce48b5a366482d4b4c4c053e1e39e79d71987197.tar.gz rails-ce48b5a366482d4b4c4c053e1e39e79d71987197.tar.bz2 rails-ce48b5a366482d4b4c4c053e1e39e79d71987197.zip |
Prevent infinit method_missing loop on attribute methods
If a klass has acceptance validation and then
`klass.undefine_attribute_methods` is happened before an attribute
method is called, infinit loop is caused on the `method_missing` defined
by the `LazilyDefineAttributes`.
https://travis-ci.org/rails/rails/jobs/467053984#L1409
To prevent the infinit loop, the `method_missing` should ensure
`klass.define_attribute_methods`.
Diffstat (limited to 'activesupport/test/notifications_test.rb')
0 files changed, 0 insertions, 0 deletions