Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- rails.rb 2009-07-12 10:39:41.000000000 +0000
+++ rails.rb.new 2009-07-12 10:40:48.000000000 +0000
@@ -22,7 +22,7 @@
load_application
- @rails_app = if ActionController::Dispatcher.instance_methods.include?(:call)
+ @rails_app = if (ActionController.const_defined?(:Dispatcher) && ActionController::Dispatcher.instance_methods.include?(:call))
ActionController::Dispatcher.new
else
CgiApp.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment