Permalink
Browse files

Initializer skips prepare_dispatcher if Action Controller isn't in us…

…e. [#721 state:resolved]
  • Loading branch information...
1 parent a065b76 commit c8e80f6389b45134c0514dde6736488cf5507765 @josevalim josevalim committed with jeremy Jul 30, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/initializer.rb
@@ -523,6 +523,7 @@ def load_application_initializers
end
def prepare_dispatcher
+ return unless configuration.frameworks.include?(:action_controller)
require 'dispatcher' unless defined?(::Dispatcher)
Dispatcher.define_dispatcher_callbacks(configuration.cache_classes)
Dispatcher.new(RAILS_DEFAULT_LOGGER).send :run_callbacks, :prepare_dispatch

0 comments on commit c8e80f6

Please sign in to comment.