From 1a5f016cf0a1b73f2dc7440e65e902e38aa71ee2 Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Sun, 13 Jun 2010 13:38:16 +0200 Subject: [PATCH] made rails actually *use* static dispatch --- lib/capybara/rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/rails.rb b/lib/capybara/rails.rb index 13ad0267..5e47a39c 100644 --- a/lib/capybara/rails.rb +++ b/lib/capybara/rails.rb @@ -4,7 +4,7 @@ require 'capybara/dsl' Capybara.app = Rack::Builder.new do map "/" do if Rails.version.to_f >= 3.0 - ActionDispatch::Static + use ActionDispatch::Static run Rails.application else # Rails 2 use Rails::Rack::Static