method

initialize_dup

rails latest stable - Class: ActiveRecord::Core::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

initialize_dup(other)
public

No documentation available.

# File activerecord/lib/active_record/core.rb, line 539
    def initialize_dup(other) # :nodoc:
      @attributes = @attributes.deep_dup
      @attributes.reset(@primary_key)

      _run_initialize_callbacks

      @new_record               = true
      @previously_new_record    = false
      @destroyed                = false
      @_start_transaction_state = nil

      super
    end