Skip to content

Commit

Permalink
Add missing case that Term.active is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Aug 20, 2024
1 parent 0d39b9e commit 74d5959
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/lecture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ def speakers
end

def older_than?(timespan)
return false unless Term.active
return true unless term

term.begin_date <= Term.active.begin_date - timespan
Expand Down

0 comments on commit 74d5959

Please sign in to comment.