diff options
author | mr <mr@mrautenberg.de> | 2011-10-17 12:32:27 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-10-17 12:32:27 +0200 |
commit | f60f559c98343b36ed50cfba1a365f2738f59a68 (patch) | |
tree | c1546dd60d29d16093986de5f4bff8167c3333fb /application.rb | |
parent | 3740f8be9d43a874f87a1757857f55d3662f60ff (diff) |
clean code for navigation
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 019592c..6cdfcfb 100644 --- a/application.rb +++ b/application.rb @@ -202,7 +202,7 @@ end get '/predict/?' do @models = ToxCreateModel.all.sort @models = @models.collect{|m| m if m.status == 'Completed'}.compact - @models = @models.sort_by{|x| [x.endpoint,x.name.downcase] } + @models = @models.sort_by{|x| [x.endpoint ? x.endpoint : "",x.name.downcase]} haml :predict end |