app/controllers/observations_controller.rb
# Refresh lists affected by taxon changes in a batch of new/edited
# observations.  Note that if you don't set @skip_refresh_lists on the records
# in @observations before this is called, this won't do anything
Refresh lists affected by taxon changes in a batch of new/edited
observations.  Note that if you don't set @skip_refresh_lists on the records
in @observations before this is called, this won't do anything
Refresh lists affected by taxon changes in a batch of new / edited observations . Note that if you don ' t set @skip_refresh_lists on the records in @observations before this is called this won ' t do anything
def refresh_lists_for_batch
    return true if @observations.blank?
    taxa = @observations.compact.select(&:skip_refresh_lists).map(&:taxon).uniq.compact
    return true if taxa.blank?
    List.delay(:priority => USER_PRIORITY).refresh_for_user(current_user, :taxa => taxa.map(&:id))
    true
  end
def refresh_lists_for_batch return true if @observations . blank? taxa = @observations . compact . select ( & :skip_refresh_lists ) . map ( & :taxon ) . uniq . compact return true if taxa . blank? List . delay ( :priority => USER_PRIORITY ) . refresh_for_user ( current_user , :taxa => taxa . map ( & :id ) ) true end
Refresh lists affected by taxon changes in a batch of new/edited
observations.
Refresh lists affected by taxon changes in a batch of new / edited observations .