diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-08-12 16:24:23 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-08-12 16:24:23 +0100 |
commit | fd3763c2a20af24428307a0dd1936d927ed323e2 (patch) | |
tree | 04fb750313c43ad970b3ee477002196cdbbae786 /app/models/info_request.rb | |
parent | dbac4121cae0d620c7c11c6731fe5344ff1c677e (diff) |
When displaying information about how overdue something is, use values from the config file, rather than hard coded ones. Fixes #130.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 419546c99..c667e1499 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -651,6 +651,8 @@ public # days is a very long time. def date_very_overdue_after last_sent = last_event_forming_initial_request + very_late_days_later = MySociety::Config.get('REPLY_VERY_LATE_AFTER_DAYS', 40) + school_very_late_days_later = MySociety::Config.get('SPECIAL_REPLY_VERY_LATE_AFTER_DAYS', 60) if self.public_body.is_school? # schools have 60 working days maximum (even over a long holiday) return Holiday.due_date_from(self.date_initial_request_last_sent_at, 60) |