Browse files

Stab at fixing heroku again

  • Loading branch information...
1 parent 1ec6327 commit 3cc3bc8599da48fe137b7bee2a0cd2100ba5bc4b @kneath committed May 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/burndown/app.rb
View
2 lib/burndown/app.rb
@@ -14,7 +14,7 @@ class App < Sinatra::Default
get "/project/:id" do
@project = Project.get(params[:id])
- @milestones = @project.milestones.all(:order => [:due_on.asc]).sort { |x, y| (x.due_on.nil? || x.due_on == "") ? 1 : x.due_on <=> y.due_on }
+ @milestones = @project.milestones.all(:order => [:due_on.asc]).sort { |x, y| !x.due_on ? 1 : x.due_on <=> y.due_on }
show :project
end

0 comments on commit 3cc3bc8

Please sign in to comment.