Method: ActiveRecord::Inheritance::ClassMethods#dup

Defined in:
activerecord/lib/active_record/inheritance.rb

#dupObject

:nodoc:



226
227
228
229
230
231
232
# File 'activerecord/lib/active_record/inheritance.rb', line 226

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