app/models/record_revision.rb
# ====Params
# Optional String DAAC short name
# ====Returns
# Record Array
# ==== Method
# Queries all records of the param type from DB
# Then filters them to return a list of only the newest revision id for each collection in the system or by DAAC.
Params
Optional String DAAC short name
Returns
Record Array
Method
Queries all records of the param type from DB
Then filters them to return a list of only the newest revision id for each collection in the system or by DAAC.
Params Optional String DAAC short name Returns Record Array Method Queries all records of the param type from DB Then filters them to return a list of only the newest revision id for each collection in the system or by DAAC .
def all_newest_revisions(daac_short_name = nil, application_mode = :arc_mode)
    all_revisions = self.ordered_revisions(daac_short_name, application_mode)
    record_lists = all_revisions.values
    newest_records = record_lists.map { |record_list| record_list[0] }
    newest_records
  end
def all_newest_revisions ( daac_short_name = nil , application_mode = :arc_mode ) all_revisions = self . ordered_revisions ( daac_short_name , application_mode ) record_lists = all_revisions . values newest_records = record_lists . map { | record_list | record_list [ 0 ] } newest_records end
Params
Optional String DAAC short name
Returns
Record Array
 Method
Queries all records of the param type from DB
Then filters them to return a list of only the newest revision id for each collection in the system or by DAAC.
Params Optional String DAAC short name Returns Record Array Method Queries all records of the param type from DB Then filters them to return a list of only the newest revision id for each collection in the system or by DAAC .
daac_short_name
<not_specific>
application_mode
<not_specific>