Permalink
Browse files

Another attempt to fix heroku errors

  • Loading branch information...
kneath committed May 3, 2009
1 parent 3cc3bc8 commit d3b30c6c8fbd14e31e8ef564c0ddd6d26db2fabf
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/burndown/app.rb
View
@@ -14,7 +14,9 @@ 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 ? 1 : x.due_on <=> y.due_on }
+ @milestones = @project.milestones.all(:order => [:due_on.asc]).sort { |x, y|
+ x.due_on.nil? || y.due_on.nil? ? 1 : x.due_on <=> y.due_on
+ }
show :project
end

0 comments on commit d3b30c6

Please sign in to comment.