wadewomersley/redmine-auto-percent — Issue #2: Set 100% for any status defined as 'closed'
Author: farviewsoft
Created: 2011-11-22 23:01:00+00:00
State: open

In the line where you set 100% for Resolved or Closed:

```self.done_ratio = 100 if self.status_id == 3 || self.status_id == 5```

If you use status.is_closed? you can cover any custom closed statuses that a user defines in their own redmine setup:

```self.done_ratio = 100 if self.status.is_closed?```