method

initialize_copy

initialize_copy(other)
public

No documentation available.

# File activerecord/lib/active_record/relation.rb, line 30
    def initialize_copy(other)
      # This method is a hot spot, so for now, use Hash[] to dup the hash.
      #   https://bugs.ruby-lang.org/issues/7166
      @values        = Hash[@values]
      @values[:bind] = @values[:bind].dup if @values.key? :bind
      reset
    end