app/models/taxon.rb
# Sometimes you don't want to make a new taxon name with a taxon, like when
# you're saving a new taxon name with a new associated taxon. Hence, this.
Sometimes you don't want to make a new taxon name with a taxon, like when
you're saving a new taxon name with a new associated taxon. Hence, this.
Sometimes you don ' t want to make a new taxon name with a taxon like when you ' re saving a new taxon name with a new associated taxon . Hence this .
def update_life_lists(options = {})
    ids = options[:skip_ancestors] ? [id] : [id, ancestor_ids].flatten.compact
    if ListRule.exists?([
        "operator LIKE 'in_taxon%' AND operand_type = ? AND operand_id IN (?)", 
        Taxon.to_s, ids])
      unless Delayed::Job.where("handler LIKE '%update_life_lists_for_taxon%id: ''#{id}''%'").exists?
        LifeList.delay(:priority => INTEGRITY_PRIORITY).update_life_lists_for_taxon(self)
      end
    end
    true
  end
def update_life_lists ( options = { } ) ids = options [ :skip_ancestors ] ? [ id ] : [ id , ancestor_ids ] . flatten . compact if ListRule . exists? ( [ "operator LIKE 'in_taxon%' AND operand_type = ? AND operand_id IN (?)" , Taxon . to_s , ids ] ) unless Delayed :: Job . where ( "handler LIKE '%update_life_lists_for_taxon%id: ''#{id}''%'" ) . exists? LifeList . delay ( :priority => INTEGRITY_PRIORITY ) . update_life_lists_for_taxon ( self ) end end true end
Sometimes you don't want to make a new taxon name with a taxon, like when
you're saving a new taxon name with a new associated taxon.
Sometimes you don ' t want to make a new taxon name with a taxon like when you ' re saving a new taxon name with a new associated taxon .
options