module ActiveRecord::AttributeMethods::ClassMethods

def undefine_attribute_methods # :nodoc:

:nodoc:
def undefine_attribute_methods # :nodoc:
  generated_attribute_methods.synchronize do
    super if defined?(@attribute_methods_generated) && @attribute_methods_generated
    @attribute_methods_generated = false
  end
end