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 taxon_range_kml_url
    return nil unless ranges = taxon_ranges_without_geom
    tr = ranges.detect{|tr| !tr.range.blank?} || ranges.first
    tr ? tr.kml_url : nil
  end
def taxon_range_kml_url return nil unless ranges = taxon_ranges_without_geom tr = ranges . detect { | tr | ! tr . range . blank? } || ranges . first tr ? tr . kml_url : nil 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 .