Browse Source

making rails benchmark slightly faster

Dominik Grygiel 12 years ago
parent
commit
55c01af9a5
1 changed files with 5 additions and 2 deletions
  1. 5 2
      rails/app/controllers/hello_world_controller.rb

+ 5 - 2
rails/app/controllers/hello_world_controller.rb

@@ -1,4 +1,7 @@
-class HelloWorldController < ApplicationController
+class HelloWorldController < ActionController::Metal
+  include ActionController::Rendering
+  include ActionController::Renderers::All
+
   def json
   def json
     render :json => {:message => "Hello World!"}
     render :json => {:message => "Hello World!"}
   end
   end
@@ -13,4 +16,4 @@ class HelloWorldController < ApplicationController
     end
     end
     render :json => results
     render :json => results
   end
   end
-end
+end