aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/dispatcher.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright timesDavid Heinemeier Hansson2006-09-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tighten rescue clauses. Closes #5985.Jeremy Kemper2006-08-311-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add silencing to deprecations; avoid self-scolding.Nicholas Seckar2006-08-141-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rearrange application resetting and preparation, fix bug with leaking ↵Rick Olson2006-08-091-1/+5
| | | | | | subclasses hash in ActiveRecord::Base [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cause ApplicationController to be reloadedDavid Heinemeier Hansson2006-08-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Dispatcher.reset_application! so that AR subclasses are removed and ↵Rick Olson2006-08-071-1/+1
| | | | | | Observers re-initialized *after* Reloadable classes are removed. Closes #5743. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Dispatcher.to_prepare and config.to_prepare to provide a pre-request hook.Nicholas Seckar2006-08-061-3/+44
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tweak the Rails load order so observers are loaded after plugins, and ↵Rick Olson2006-08-061-1/+1
| | | | | | reloaded in development mode. Closed #5279. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4684 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the failsafe response so it uses either the current recognized ↵Rick Olson2006-07-281-2/+5
| | | | | | controller or ApplicationController. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dispatcher processes rescued actions with the same controller that processed ↵Jeremy Kemper2006-07-081-1/+1
| | | | | | the request. Closes #4625. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New routes implementation. Simpler, faster, easier to understand. The ↵Jamis Buck2006-06-011-1/+1
| | | | | | published API for config/routes.rb is unchanged, but nearly everything else is different, so expect breakage in plugins and libs that try to fiddle with routes. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4394 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that Dispatcher exceptions should not be shown to the user unless a ↵David Heinemeier Hansson2006-04-051-2/+20
| | | | | | default log has not been configured. Instead show public/500.html [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that rails --version should have the return code of 0 (success) ↵David Heinemeier Hansson2006-04-031-1/+1
| | | | | | (closes #4560) [blair@orcaware.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the 3rd arg optional for #failsafe_responseRick Olson2006-03-081-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3815 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a backtrace to the evil WSOD (White Screen of Death). Closes #4073. ↵Rick Olson2006-03-071-2/+4
| | | | | | TODO: Clearer exceptions [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clear stale, cached connections left behind by defunct threads. Eliminate ↵Jeremy Kemper2006-03-011-3/+2
| | | | | | duplicate connection cache. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Speed up class -> connection caching and stale connection verification. ↵Jeremy Kemper2006-02-271-1/+2
| | | | | | Closes #3979. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove LoadingModuleNicholas Seckar2006-02-031-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add LoadingModule.clear! back temporarilyNicholas Seckar2006-02-021-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pluralization bites againNicholas Seckar2006-02-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Further improvements to reloading codeNicholas Seckar2006-02-021-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added reusable reloading support through the inclusion of the Relodable ↵David Heinemeier Hansson2006-01-291-2/+1
| | | | | | module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Connection cache to speed up retrieve_connection and get rid of dirty ↵Jeremy Kemper2005-12-041-1/+1
| | | | | | connection marking. References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3181@asus: jeremy | 2005-11-19 02:52:24 -0800Jeremy Kemper2005-11-191-0/+1
| | | | | | | Mark connections for verification. Retrieve connection verifies before returning a connection. Verification tests whether the connection is marked then reconnects if the connection is inactive. All active connections are marked for verification after a request is handled. References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Failsafe response handler for dispatcher.Jeremy Kemper2005-11-021-7/+29
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move Dispatcher.dispatch CGI.new out of default args and into rescuable ↵Jeremy Kemper2005-11-011-12/+12
| | | | | | block so the dispatcher catches its errors rather than the fcgi handler. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation updates/fixes for railtiesJamis Buck2005-10-161-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed memory leak with Active Record classes when Dependencies.mechanism = ↵David Heinemeier Hansson2005-09-201-0/+1
| | | | | | :load #1704 [c.r.mcgrath@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only load breakpoint in development mode and when BREAKPOINT_SERVER_PORT is ↵Nicholas Seckar2005-08-311-3/+10
| | | | | | defined. Closes #1957 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use SIGHUP to dynamically reload an fcgi process without restarting it. ↵Jamis Buck2005-06-291-9/+10
| | | | | | Refactored dispatch.fcgi so that the RailsFCGIHandler is in the lib dir. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1565 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionMailer::Base subclasses are reloaded with other rails components #1262Jamis Buck2005-06-241-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed the mutex from the WEBrick adapter under the production environment ↵David Heinemeier Hansson2005-06-221-3/+3
| | | | | | so concurrent requests can be served git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont activate the query cache just yetDavid Heinemeier Hansson2005-05-021-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1278 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Started work on a per-request query cacheDavid Heinemeier Hansson2005-05-021-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added exception shallowing if the DRb server can't be started (not worth ↵David Heinemeier Hansson2005-03-061-1/+1
| | | | | | making a fuss about to distract new users) #779 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Help against errors in ApplicationControllerDavid Heinemeier Hansson2005-02-201-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated dependency loading to consider non-standard class/file name combinationsDavid Heinemeier Hansson2005-02-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@712 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allows a loading module to load from multiple load paths #675David Heinemeier Hansson2005-02-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* All libraries should link against the independent active supportDavid Heinemeier Hansson2005-02-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A hopefully more successful attempt at the Routing branch mergeDavid Heinemeier Hansson2005-02-151-36/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of routing merge.. investigating missing patchesDavid Heinemeier Hansson2005-02-151-15/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merged back the Routing branchDavid Heinemeier Hansson2005-02-151-37/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved subclass reloading responsibilities to DependenciesDavid Heinemeier Hansson2005-01-251-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New approach to reloading that uses remove_const on ARs and AOs as well as ACsDavid Heinemeier Hansson2005-01-251-21/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that /Recipe/new and /recipe/new points to the same thing [Lyle Johnson]David Heinemeier Hansson2005-01-241-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed handling of syntax errors in models that had already been succesfully ↵David Heinemeier Hansson2005-01-241-9/+19
| | | | | | required once in the current interpreter. Fixed superclass mismatch and other controller related problems by not using dependency reloading for controllers. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Another swing at reloadingDavid Heinemeier Hansson2005-01-241-13/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@479 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Brought back reloading of modelsDavid Heinemeier Hansson2005-01-231-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@478 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Flipped reloads aroundDavid Heinemeier Hansson2005-01-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that FCGI can also display SyntaxErrorsDavid Heinemeier Hansson2005-01-201-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de