aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/holiday.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/holiday.rb')
-rw-r--r--app/models/holiday.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/holiday.rb b/app/models/holiday.rb
index 490fdb8c7..1d70c12a3 100644
--- a/app/models/holiday.rb
+++ b/app/models/holiday.rb
@@ -32,9 +32,10 @@ class Holiday < ActiveRecord::Base
date.wday == 0 || date.wday == 6 || holidays.include?(date)
end
- # Calculate the date on which a request made on a given date falls due.
+ # Calculate the date on which a request made on a given date falls due when
+ # days are given in working days
# i.e. it is due by the end of that day.
- def Holiday.due_date_from(start_date, working_days)
+ def Holiday.due_date_from_working_days(start_date, working_days)
# convert date/times into dates
start_date = start_date.to_date