diff options
author | John Firebaugh <john_firebaugh@us.ibm.com> | 2010-11-23 18:04:05 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-12-20 12:43:02 +0100 |
commit | 0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668 (patch) | |
tree | bef68868ab12882293e04a102f9e507efae2c7f6 /railties/lib/rails | |
parent | d4f995301bace57070e37ac97b9b18a70aed2230 (diff) | |
download | rails-0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668.tar.gz rails-0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668.tar.bz2 rails-0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668.zip |
Introduce ActionDispatch::Reloader
Based on the implementation on the 2-3-stable branch, patches by Hongli
Lai <hongli@phusion.nl>, and helpful suggestions from José Valim.
Hongli Lai's patches included locking around the request cycle; this is
now handled by Rack::Lock (https://github.com/rack/rack/issues/issue/87/).
[#2873]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index b248bc737c..3b7505ce37 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -156,6 +156,7 @@ module Rails middleware.use ::ActionDispatch::ShowExceptions, config.consider_all_requests_local if config.action_dispatch.show_exceptions middleware.use ::ActionDispatch::RemoteIp, config.action_dispatch.ip_spoofing_check, config.action_dispatch.trusted_proxies middleware.use ::Rack::Sendfile, config.action_dispatch.x_sendfile_header + middleware.use ::ActionDispatch::Reloader unless config.cache_classes middleware.use ::ActionDispatch::Callbacks, !config.cache_classes middleware.use ::ActionDispatch::Cookies |