public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Initializer skips prepare_dispatcher if Action Controller isn't in use.  [#721 
state:resolved]
josevalim (author)
Wed Jul 30 01:41:51 -0700 2008
jeremy (committer)
Wed Jul 30 01:43:57 -0700 2008
commit  931d4629d29642145094bd0ad34660d3482d9e9c
tree    7d67dda6625b59972b1d913af6b6a17ae25772e6
parent  8887f2076a52a160bf8c852b5cd04ea588eaa46b
...
486
487
488
 
489
490
491
...
486
487
488
489
490
491
492
0
@@ -486,6 +486,7 @@ Run `rake gems:install` to install the missing gems.
0
     end
0
 
0
     def prepare_dispatcher
0
+      return unless configuration.frameworks.include?(:action_controller)
0
       require 'dispatcher' unless defined?(::Dispatcher)
0
       Dispatcher.define_dispatcher_callbacks(configuration.cache_classes)
0
       Dispatcher.new(RAILS_DEFAULT_LOGGER).send :run_callbacks, :prepare_dispatch

Comments