Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Another attempt to fix heroku errors

  • Loading branch information...
commit d3b30c6c8fbd14e31e8ef564c0ddd6d26db2fabf 1 parent 3cc3bc8
Kyle Neath authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 lib/burndown/app.rb
4 lib/burndown/app.rb
@@ -14,7 +14,9 @@ class App < Sinatra::Default
14 14
15 15 get "/project/:id" do
16 16 @project = Project.get(params[:id])
17   - @milestones = @project.milestones.all(:order => [:due_on.asc]).sort { |x, y| !x.due_on ? 1 : x.due_on <=> y.due_on }
  17 + @milestones = @project.milestones.all(:order => [:due_on.asc]).sort { |x, y|
  18 + x.due_on.nil? || y.due_on.nil? ? 1 : x.due_on <=> y.due_on
  19 + }
18 20 show :project
19 21 end
20 22

0 comments on commit d3b30c6

Please sign in to comment.
Something went wrong with that request. Please try again.