aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/initializer.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Made the instantiated/transactional fixtures settings be controlled through ↵Florian Weber2005-10-141-1/+27
| | | | | | Rails::Initializer. Transactional and non-instantiated fixtures are default from now on. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem with RAILS_ENV being frozen when set from environment variableJamis Buck2005-10-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2576 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Load plugins lastJamis Buck2005-10-051-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2467 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* prepend to load path before loading the pluginJamis Buck2005-10-051-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add experimental plugin support #2335Jamis Buck2005-10-051-1/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont redefine RAILS_ENV once setDavid Heinemeier Hansson2005-09-301-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the order of framework settings significant so ↵David Heinemeier Hansson2005-09-301-16/+35
| | | | | | config.action_controller.allow_concurrency can be specified before config.action_controller.fragment_cache_store, which relies on the value of the former git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2423 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont bitch over resetting constDavid Heinemeier Hansson2005-09-291-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only configure settings for loaded frameworksDavid Heinemeier Hansson2005-09-221-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include ActionView as a configurable frameworkDavid Heinemeier Hansson2005-09-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cant use silence_warnings before active support is loadedDavid Heinemeier Hansson2005-09-151-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the ↵David Heinemeier Hansson2005-09-151-6/+2
| | | | | | connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2249 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added check for RAILS_CONNECTION_ADAPTERS on startup and only load the ↵David Heinemeier Hansson2005-09-151-0/+11
| | | | | | connection adapters specified within if its present (available in Rails through config.connection_adapters using the new config) #1958 [skae] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2248 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved session and fragment options outDavid Heinemeier Hansson2005-09-131-6/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Control depedency mechanism, breakpoints, and whiny nils through the configDavid Heinemeier Hansson2005-09-131-50/+93
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make it even easier to set a new session store and use symbols for log level tooDavid Heinemeier Hansson2005-09-121-3/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Rails::Configuration support for fragment storesDavid Heinemeier Hansson2005-09-121-2/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added create_session_table, drop_session_table, and purge_session_table as ↵David Heinemeier Hansson2005-09-121-0/+12
| | | | | | rake tasks for databases that supports migrations (MySQL, PostgreSQL, SQLite) to get a table for use with CGI::Session::ActiveRecordStore. Added configuration of session options through config.session_options in Rails::Configuration git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Kernel#silence_warnings and puts it into use throughout the frameworkDavid Heinemeier Hansson2005-09-111-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow the selected environment to define RAILS_DEFAULT_LOGGER, and have ↵Jamis Buck2005-09-051-1/+4
| | | | | | Rails::Initializer use it if it exists. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Silence logger initializationDavid Heinemeier Hansson2005-09-031-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix mocks dirDavid Heinemeier Hansson2005-09-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Talk about whats missingDavid Heinemeier Hansson2005-09-031-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Also configure template view pathDavid Heinemeier Hansson2005-09-031-0/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de