Skip to content

Instantly share code, notes, and snippets.

@chrisanderton
Created July 12, 2009 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisanderton/145594 to your computer and use it in GitHub Desktop.
Save chrisanderton/145594 to your computer and use it in GitHub Desktop.
--- 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