instance method
undefine_attribute_methods
Ruby on Rails 3.2.22.5
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 277
def undefine_attribute_methods
generated_attribute_methods.module_eval do
instance_methods.each { |m| undef_method(m) }
end
attribute_method_matchers_cache.clear
end
Defined in activemodel/lib/active_model/attribute_methods.rb line 277
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods::ClassMethods