aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/initializer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ensure plugins are in the Dependencies.load_once_paths collection by ↵Rick Olson2006-12-271-4/+3
| | | | | | default. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow config.to_prepare to work, make the dispatcher safe to 're require'. ↵Michael Koziarski2006-12-261-0/+1
| | | | | | [Koz, Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5792 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reapply plugin load path changes from [5720]Michael Koziarski2006-12-181-7/+22
| | | | | | | | Closes #6842 Closes #6851 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert [5720] Michael Koziarski2006-12-161-21/+8
| | | | | | | | Reopens #6581 Reopens #6842 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make config.plugins affect $LOAD_PATH and remove duplication from $LOAD_PATH ↵Michael Koziarski2006-12-151-8/+21
| | | | | | | | | | | [James Adam] Closes #6581 Closes #6842 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update initializer to load Rails::VERSION as soon as possible. Closes #6698.Nicholas Seckar2006-11-251-6/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rails::VERSION::STRING should always be available. Closes #6244.Jeremy Kemper2006-11-131-73/+79
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Default $KCODE to 'u' to enable the multibyte-safe chars proxy. [Koz]Michael Koziarski2006-10-171-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added config.plugins to control which plugins are loaded #6269 [skaes]. By ↵David Heinemeier Hansson2006-10-171-2/+14
| | | | | | default, everything in vendor/plugins will be loaded, but if you specify config.plugins, only those will be loaded. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove extraneous expand_path; fix plugin load pathsNicholas Seckar2006-10-161-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add plugins and builtins to the load_path.Nicholas Seckar2006-10-161-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove autoload_paths to simplify configuration.Nicholas Seckar2006-10-161-65/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove the uncanny default of adding all app/models/*/ directories to the ↵Nicholas Seckar2006-09-071-6/+14
| | | | | | load path. References #6031. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update Initializer to use load_once_paths to avoid plugin reloading. ↵Nicholas Seckar2006-08-291-3/+28
| | | | | | | | | References #5852. Add Dependencies.load_once_paths. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add controller_paths variable to Routing; Assign Routing.controller_paths ↵Nicholas Seckar2006-08-151-4/+11
| | | | | | from initializer; fix script/about and rails info controller. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add missing mock directories from the autoload_paths configuration. [Rick ↵Rick Olson2006-08-091-0/+3
| | | | | | Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New dependencies implementationNicholas Seckar2006-08-081-0/+41
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move methodNicholas Seckar2006-08-061-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Dispatcher.to_prepare and config.to_prepare to provide a pre-request hook.Nicholas Seckar2006-08-061-0/+7
| | | | 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-2/+9
| | | | | | reloaded in development mode. Closed #5279. [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4684 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Namespaced OrderedHash so the Rails implementation does not clash with any ↵Rick Olson2006-04-301-26/+15
| | | | | | others. (fixes #4911) [Julian Tarkhanov] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use reverse_each rather than reverse.each. [Marcel Molina Jr.]Marcel Molina2006-04-301-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reject Ruby 1.8.3 when loading Rails; extract version checking code.Nicholas Seckar2006-03-191-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove explicit loading of RailsInfo and RailsInfoController.Nicholas Seckar2006-03-191-5/+5
| | | | | | | | Move RailsInfo and RailsInfoController to Rails::Info and Rails::InfoController. Extend load path with Railties' builtin directory to make adding support code easy. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update duplicated OrderedOptions code.Nicholas Seckar2006-02-261-12/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tmp/sessions, tmp/cache, and tmp/sockets as default directories in the ↵David Heinemeier Hansson2006-02-251-1/+14
| | | | | | Rails skeleton [DHH] Changed the default session configuration to place sessions in tmp/sessions, if that directory is available, instead of /tmp (this essentially means a goodbye to 9/10 White Screen of Death errors and should have web hosting firms around the world cheering) [DHH] Added a default configuration of the FileStore for fragment caching if tmp/cache is available, which makes action/fragment caching ready to use out of the box with no additional configuration [DHH] Changed the default configuration for lighttpd to use tmp/sockets instead of log/ for the FastCGI sockets [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Configuration#after_initialize for specifying a block to be executed ↵Michael Koziarski2006-02-071-2/+23
| | | | | | after the framework is completely initialized. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove LoadingModuleNicholas Seckar2006-02-031-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added check for RAILS_FRAMEWORK_ROOT constant that allows the Rails ↵David Heinemeier Hansson2006-01-301-8/+15
| | | | | | framework to be found in a different place than vendor/rails. Should be set in boot.rb. [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Load plugins in a consistent order. Closes #3429Michael Koziarski2006-01-141-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problems with the plugin loader where plugins could override 'name' and ↵Michael Koziarski2006-01-131-2/+3
| | | | | | prevent loading. Closes #3297 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix for Initializer doc, routing is loaded last so that plugins can extend itTobias Lütke2006-01-111-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Run initialize_logger in script/lighttpd to ensure the log file exists ↵Sam Stephenson2005-11-301-1/+3
| | | | | | before tailing it git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add plugin library directories to the load path after the lib directory so ↵Marcel Molina2005-11-211-3/+7
| | | | | | that libraries in the lib directory get precedence. Closes #2910. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rename Version constant to VERSION. Closes #2802.Marcel Molina2005-11-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pass __FILE__ when evaluating plugins' init.rb. Closes #2817.Jeremy Kemper2005-11-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't reload routes until plugins have been loaded so they have a chance to ↵David Heinemeier Hansson2005-11-101-1/+3
| | | | | | extend the routing capabilities [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added an omnipresent RailsInfoController with a properties action that ↵Sam Stephenson2005-11-081-1/+2
| | | | | | delivers an HTML rendering of Rails::Info (but only when local_request? is true). Added a new default index.html which fetches this with Ajax. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise in stubby/init.rb if it doesn't have access to directory or config. ↵Jeremy Kemper2005-11-071-1/+1
| | | | | | loaded_plugins is a set of plugin names (so it will be usable with multiple paths, gems, etc). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Restore access to 'directory' and 'config' inside the plugin eval environmentJamis Buck2005-11-071-6/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2919 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New configuration option config.plugin_paths which may be a single path like ↵Jeremy Kemper2005-11-071-41/+94
| | | | | | the default 'vendor/plugins' or an array of paths: ['vendor/plugins', 'lib/plugins']. Plugins are discovered in nested paths, so you can organize your plugins directory as you like. Refactor load_plugin from load_plugins. Simplify initializer unit test. Closes #2757. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move info.rb to rails_info.rb and load Rails::Info after initializationSam Stephenson2005-11-051-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed app/apis as a default empty dir since its automatically created when ↵David Heinemeier Hansson2005-10-281-3/+3
| | | | | | using script/generate web_service [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added app/services as a default dir in the Rails skeleton and to the load ↵David Heinemeier Hansson2005-10-281-0/+1
| | | | | | path. Use it to keep classes like MaintenanceService and PaymentGateway [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Constants set in the development/test/production environment file are set in ↵Jamis Buck2005-10-231-0/+4
| | | | | | Object git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed misspell of "initialize_framework_settings"Florian Weber2005-10-201-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add documentation for Rails::Initializer and Rails::ConfigurationJamis Buck2005-10-161-15/+178
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2632 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of setting testing settings through initializer as that would ↵David Heinemeier Hansson2005-10-151-27/+0
| | | | | | break backwards compatibility git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed the overeager test runningDavid Heinemeier Hansson2005-10-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2609 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clean-up fix a bitDavid Heinemeier Hansson2005-10-141-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de