method
initialize_copy
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::Relation
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