# File app/models/period.rb, line 45 def active_or_future?(check_tasks = false) end_on >= Date.today || (check_tasks && tasks.select {|task| task.active?}.size > 0) end