Use Rails.configuration instead of dispatcher.
Add default_days_due to project model.
Reflect the project default_days_due on issue creation.