instance method
reset_default_attributes
Ruby on Rails edge
Since v7.2.3.2 Private — implementation detail, not part of the public APISignature
reset_default_attributes()
No documentation comment.
Source
# File activerecord/lib/active_record/attributes.rb, line 307
def reset_default_attributes
([self] + descendants).each(&:undefine_attribute_methods)
reload_schema_from_cache
end
Defined in activerecord/lib/active_record/attributes.rb line 307
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Attributes::ClassMethods