app/presenters/dbs_visibility.rb
def recency_rules_outcome
    if adult_caution?
      return caution_date.after?(6.years.ago) ? :will : :will_not
    end

    return :will if youth_conviction? && conviction_date.after?(66.months.ago) # 5 and 1/2 years
    return :will if adult_conviction? && conviction_date.after?(11.years.ago)

    nil
  end
# Recency rules for spent cautions or convictions:
#
#   - Adult cautions given within 6 years of the check: will appear.
#   - Adult cautions given 6 years ago or more of the check: will not appear.
#   - Youth convictions imposed within 5.5 years of the check: will appear.
#   - Adult convictions imposed within 11 years of the check: will appear.
#
Recency rules for spent cautions or convictions:
Adult cautions given within 6 years of the check: will appear.
Adult cautions given 6 years ago or more of the check: will not appear.
Youth convictions imposed within 5.5 years of the check: will appear.
Adult convictions imposed within 11 years of the check: will appear.
Recency rules for spent cautions or convictions : Adult cautions given within 6 years of the check : will appear . Adult cautions given 6 years ago or more of the check : will not appear . Youth convictions imposed within 5 . 5 years of the check : will appear . Adult convictions imposed within 11 years of the check : will appear .
def recency_rules_outcome
    if adult_caution?
      return caution_date.after?(6.years.ago) ? :will : :will_not
    end
    return :will if youth_conviction? && conviction_date.after?(66.months.ago) 
    return :will if adult_conviction? && conviction_date.after?(11.years.ago)
    nil
  end
def recency_rules_outcome if adult_caution? return caution_date . after? ( 6 . years . ago ) ? :will : :will_not end return :will if youth_conviction? && conviction_date . after? ( 66 . months . ago ) return :will if adult_conviction? && conviction_date . after? ( 11 . years . ago ) nil end
Recency rules for spent cautions or convictions:
 Adult cautions given within 6 years of the check: will appear.
Recency rules for spent cautions or convictions : Adult cautions given within 6 years of the check : will appear .
# 5 and 1/2 years