app/models/alchemy/element.rb
def copy_nested_elements_to(target_element)
      nested_elements.map do |nested_element|
        Element.copy(nested_element, {
          parent_element_id: target_element.id,
          page_version_id: target_element.page_version_id,
        })
      end
    end
# Copy all nested elements from current element to given target element.
Copy all nested elements from current element to given target element.
Copy all nested elements from current element to given target element .
def copy_nested_elements_to(target_element)
      nested_elements.map do |nested_element|
        Element.copy(nested_element, {
          parent_element_id: target_element.id,
          page_version_id: target_element.page_version_id,
        })
      end
    end
def copy_nested_elements_to ( target_element ) nested_elements . map do | nested_element | Element . copy ( nested_element , { parent_element_id : target_element . id , page_version_id : target_element . page_version_id , } ) end end
Copy all nested elements from current element to given target element.
Copy all nested elements from current element to given target element .
target_element