aboutsummaryrefslogtreecommitdiffstats
path: root/railties/dispatches
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-11-30 17:19:01 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-11-30 17:19:01 +0000
commit5b38d8557122723aa7c11c28d4c2c93464982766 (patch)
treed7ef5df5d7121f31e897ddeac94dbda64fa44833 /railties/dispatches
parent38e5fe97be08109fb8a416238ff8e3aaacbfc703 (diff)
downloadrails-5b38d8557122723aa7c11c28d4c2c93464982766.tar.gz
rails-5b38d8557122723aa7c11c28d4c2c93464982766.tar.bz2
rails-5b38d8557122723aa7c11c28d4c2c93464982766.zip
AbstractApplicationController and the individual controllers are now completely reloaded on each request if "reload_dependencies" is set to true. This makes it possible to REMOVE methods and constants and have the changes reflected. Beaware that this is still not possible for models, though.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@31 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/dispatches')
-rwxr-xr-xrailties/dispatches/dispatch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/dispatches/dispatch.rb b/railties/dispatches/dispatch.rb
index eb2c95e813..6ac11bbd59 100755
--- a/railties/dispatches/dispatch.rb
+++ b/railties/dispatches/dispatch.rb
@@ -6,5 +6,5 @@ require File.dirname(__FILE__) + "/../config/environment"
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
require "dispatcher"
-ADDITIONAL_LOAD_PATHS.flatten.each { |dir| $:.unshift "#{RAILS_ROOT}/#{dir}" }
+ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) }
Dispatcher.dispatch \ No newline at end of file