This commit is contained in:
Lex Cao 2024-02-25 23:09:59 +08:00
parent 23af6f37a3
commit 48036fee0d
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ module ActiveRecord
unless self.class.attribute_methods_generated?
if self.class.method_defined?(name)
# The method is explicitly defined in the model, but calls a generated
# method with super. So we must resume the call chain at the right setp.
# method with super. So we must resume the call chain at the right step.
last_method = method(name)
last_method = last_method.super_method while last_method.super_method
self.class.define_attribute_methods