Method: DataMapper::DescendantSet#initialize_copy

Defined in:
lib/dm-core/support/descendant_set.rb

#initialize_copy(original) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Copy a DescendantSet instance

Parameters:



21
22
23
# File 'lib/dm-core/support/descendant_set.rb', line 21

def initialize_copy(original)
  @descendants = @descendants.dup
end