instance method
undefine_attribute_methods
Ruby on Rails 3.0.20
Since v3.0.20Signature
undefine_attribute_methods()
Removes all the previously dynamically defined methods from the class
Source
# File activemodel/lib/active_model/attribute_methods.rb, line 315
def undefine_attribute_methods
generated_attribute_methods.module_eval do
instance_methods.each { |m| undef_method(m) }
end
@attribute_methods_generated = nil
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 315
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods::ClassMethods