lib/liszt.rb
# Synchronizes the ordered list with the database, returning the relevant
# records in order.
Synchronizes the ordered list with the database, returning the relevant
records in order.
Synchronizes the ordered list with the database returning the relevant records in order .
def refresh_ordered_list(obj={})
      list_ids   = ordered_list_ids(obj)
      records    = liszt_relation(obj).to_a
      real_ids   = records.map(&:id)
      refresh_ordered_records obj, list_ids, records, real_ids
    end
def refresh_ordered_list ( obj = { } ) list_ids = ordered_list_ids ( obj ) records = liszt_relation ( obj ) . to_a real_ids = records . map ( & :id ) refresh_ordered_records obj , list_ids , records , real_ids end
Synchronizes the ordered list with the database, returning the relevant
records in order.
Synchronizes the ordered list with the database returning the relevant records in order .
obj
<not_specific>