diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-24 11:12:04 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-24 11:12:04 +0100 |
commit | b24b09d9d557b3770f57f65e6eed45902b8b330c (patch) | |
tree | d0e8cdfba3f5643b003b31568e8711141503fd08 | |
parent | 79080b03e56648cccf534c1e6596c65fe68ac07a (diff) |
Remove references to 20 from the comments, now that the code accepts a working_days param.
-rw-r--r-- | app/models/holiday.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/holiday.rb b/app/models/holiday.rb index 2a697a7a2..1072f6a70 100644 --- a/app/models/holiday.rb +++ b/app/models/holiday.rb @@ -50,9 +50,9 @@ class Holiday < ActiveRecord::Base # convert date/times into dates start_date = start_date.to_date - # Count forward (20) working days. We start with today as "day zero". The - # first of the twenty full working days is the next day. We return the - # date of the last of the twenty. + # Count forward the number of working days. We start with today as "day zero". The + # first of the full working days is the next day. We return the + # date of the last of the number of working days. # This response for example of a public authority complains that we had # it wrong. We didn't (even thought I changed the code for a while, @@ -62,7 +62,7 @@ class Holiday < ActiveRecord::Base days_passed = 0 response_required_by = start_date - # Now step forward into each of the 20 days. + # Now step forward into each of the working days. while days_passed < working_days response_required_by += 1 days_passed += 1 unless weekend_or_holiday?(response_required_by) |