Skip to content
Snippets Groups Projects
Commit ce59f4b7 authored by pabois's avatar pabois
Browse files

enforce should_show_years

parent a1c97abe
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ class Communication::Extranet < ApplicationRecord
def should_show_years?
# For a single program, year is like cohort
return false if about&.is_a? Education::Program
return false if about.nil? || about&.is_a? Education::Program
# if a school has a single program, same thing
about&.programs&.many?
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment