1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Support a warmup for JRuby

This commit is contained in:
Yehuda Katz 2009-08-08 22:35:00 -03:00
parent b57d94c187
commit 930d235981

View file

@ -70,10 +70,9 @@ class HttpPostController < ActionController::Metal
end
end
# Runner.run(MetalPostController, N, 'metal')
# Runner.run(HttpPostController.action(:index), N, 'http') if defined? HttpPostController
# Runner.run(BasePostController.action(:index), N, 'base')
Runner.run(BasePostController.action(:partial), N, 'partial')
Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
Runner.run(BasePostController.action(:partial_collection), N, 'collection')
Runner.run(BasePostController.action(:show_template), N, 'template')
(ENV["M"] || 1).to_i.times do
Runner.run(BasePostController.action(:partial), N, 'partial')
Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
Runner.run(BasePostController.action(:partial_collection), N, 'collection')
Runner.run(BasePostController.action(:show_template), N, 'template')
end