app/models/query/manual_sorting.rb
def persist_ordered_work_packages!
      return unless previous_changes[:ordered_work_packages]

      OrderedWorkPackage.transaction do
        ::OrderedWorkPackage.where(query_id: id).delete_all
        store_ordered_work_packages!
      end
    end
##
# Replace the current set of ordered work packages
Replace the current set of ordered work packages
Replace the current set of ordered work packages
def persist_ordered_work_packages!
      return unless previous_changes[:ordered_work_packages]
      OrderedWorkPackage.transaction do
        ::OrderedWorkPackage.where(query_id: id).delete_all
        store_ordered_work_packages!
      end
    end
def persist_ordered_work_packages! return unless previous_changes [ :ordered_work_packages ] OrderedWorkPackage . transaction do :: OrderedWorkPackage . where ( query_id : id ) . delete_all store_ordered_work_packages! end end
Replace the current set of ordered work packages
Replace the current set of ordered work packages