Browse Source

Merge branch 'patch-1' of https://github.com/riffraff/FrameworkBenchmarks into PR665

Conflicts:
	rails/app/controllers/hello_world_controller.rb
Mike Smith 11 years ago
parent
commit
8d51bbe7e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rails/app/controllers/hello_world_controller.rb

+ 1 - 1
rails/app/controllers/hello_world_controller.rb

@@ -23,7 +23,7 @@ class HelloWorldController < ApplicationController
   def fortune
     @fortunes = Fortune.all
     @fortunes << Fortune.new(:id => 0, :message => "Additional fortune added at request time.")
-    @fortunes = @fortunes.sort { |x, y| x.message <=> y.message }
+    @fortunes = @fortunes.sort_by { |x| x.message }
   end
 
   def update