Milestone uses StateMachine now
This commit is contained in:
parent
29f70acc98
commit
0b512af803
7 changed files with 39 additions and 25 deletions
|
@ -12,7 +12,7 @@ class MilestonesController < ProjectResourceController
|
|||
|
||||
def index
|
||||
@milestones = case params[:f]
|
||||
when 'all'; @project.milestones.order("closed, due_date DESC")
|
||||
when 'all'; @project.milestones.order("state, due_date DESC")
|
||||
when 'closed'; @project.milestones.closed.order("due_date DESC")
|
||||
else @project.milestones.active.order("due_date ASC")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue