Skip to content

Commit

Permalink
Initializer skips prepare_dispatcher if Action Controller isn't in us…
Browse files Browse the repository at this point in the history
…e. [#721 state:resolved]
  • Loading branch information
josevalim authored and jeremy committed Jul 30, 2008
1 parent 8887f20 commit 931d462
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,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
Expand Down

0 comments on commit 931d462

Please sign in to comment.