module ActiveRecord::Inheritance::ClassMethods

def dup # :nodoc:

:nodoc:
def dup # :nodoc:
  # `initialize_dup` / `initialize_copy` don't work when defined
  # in the `singleton_class`.
  other = super
  other.set_base_class
  other
end