aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/initializer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix a number of errors in the config.gem mechanism.Matt Jones2008-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rails::GemDependency was missing definitions for hash and eql?, causing Array#uniq to not work. * If several versions of a gem are unpacked in vendor, now chooses the highest if no version is specified. * streamlined add_load_path. Now sets up Rubygems correctly to allow 'gem' to find frozen gems, with gems frozen to vendor/gems and specifications in vendor/gems/<gem-name>/.specification * Rails::GemDependency#specification would return a spec for the highest installed version, even for frozen gems and/or previously loaded lower versions. See in part ticket #1123. * removed vendor from default_load_paths - it was causing autoloading to append Gems::Gems::<gem-dir> to constant names * added additional tests for loading frozen gems. * incorporates the fix from #1107 for vendor rails * defers to freeze:gems for handling the Rails framework. gems:unpack WILL NOT place a copy of Rails in vendor/gems. Should close #1123 completely. * incorporates, via using the gem loader for frozen gems, fixes corresponding to #227, #324, #362, #527, and #742. * gem plugins now work the same whether frozen or not. Correctness of the behavior is a matter for another ticket... Signed-off-by: rick <technoweenie@gmail.com>
* Database connections are now pooled, one pool per #establish_connection call.Jeremy Kemper2008-09-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pools start out empty and grow as necessary to a maximum size (default is 5, configure size with key 'pool' in your database configuration). If no connections are available, a thread will wait up to a 'wait_timeout' time (default is 5 seconds). Connections are verified and reset when checked out from the pool (usually upon first access to ActiveRecord::Base.connection), and returned back to the pool after each request. If you would like to use connection pools outside of ActionPack, there is an ActiveRecord::Base.connection_pool method that gives you access to the pool, and you can manually checkout/checkin connections, or supply a block to ActiveRecord::Base.connection_pool.with_connection which takes care of the checkout/checkin for you. [#936 state:resolved]
| * Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* | Remove call to active_record.allow_concurrency since it's deprecatedNick Sieger2008-08-291-1/+0
|/
* Always require activesupport, even if its constant already existsTarmo Tänav2008-08-231-0/+1
| | | | | | | | | | This is needed because the existance of the ActiveSupport constant by itself does not guarantee that the whole library has been loaded. Also load the StringInquirer in the Rails#env method as the it might be called inside the initializer block before activesupport itself has been loaded.
* Initializer to sort files before eager loading. [#859 state:resolved]Tom Ward2008-08-221-1/+1
| | | | | | | | Changed Rails::Initializer to sort files before eager loading them. This ensures that any files in a parent directory will be loaded before files in a subdirectory of the 'same' name. i.e. zoo.rb will be loaded before zoo/reptile_house.rb Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Consistently use the framework's configured logger and avoid reverting to ↵Joshua Peek2008-08-181-5/+10
| | | | RAILS_DEFAULT_LOGGER unless necessary.
* Make sure ActionView is loaded inorder to build view pathsJoshua Peek2008-08-061-6/+10
|
* MemoryStore is the only "unsafe" store. Make it threadsafe by default.Joshua Peek2008-08-061-1/+0
|
* Added config.threadsafe! to toggle allow concurrency settings and disable ↵Joshua Peek2008-08-041-0/+12
| | | | the dependency loader
* Make requiring gems optional.Ben Sandofsky2008-08-041-1/+5
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#743 state:resolved]
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2008-07-311-1/+1
|\
| * Turn cache_classes on by default [#645 state:resolved]Joshua Peek2008-07-311-1/+1
| |
* | load_application_classes requires files relative to the load path and ↵Jeremy Kemper2008-07-311-2/+3
|/ | | | without .rb extension, including .rb files in subdirectories
* Initializer requires ERB explicitly instead of assuming Action Pack loaded ↵José Valim2008-07-301-0/+1
| | | | it. [#722 state:resolved]
* Initializer skips prepare_dispatcher if Action Controller isn't in use. ↵José Valim2008-07-301-0/+1
| | | | [#721 state:resolved]
* Remove incomplete non-blocking logger functionalityMichael Koziarski2008-07-291-1/+0
|
* Check for ActionMailer and ActionController before attempting to eager load ↵Sam Granieri2008-07-241-2/+2
| | | | | | their view paths Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added config.dependency_loading to enable or disable the dependency loader ↵Joshua Peek2008-07-241-3/+24
| | | | after initialization
* Load view path cache after plugins and gems.Joshua Peek2008-07-231-3/+10
|
* Added configurable eager load paths. Defaults to app/models, ↵Joshua Peek2008-07-211-4/+21
| | | | app/controllers, and app/helpers
* Preload application classes. Uses same strategy as phusion passenger.Joshua Peek2008-07-211-0/+11
|
* Merge with docrails.Pratik Naik2008-07-161-2/+2
|
* ActionMailer and ActionView can share the same view path cacheJoshua Peek2008-07-151-2/+4
|
* Removed config.action_view.cache_template_loading, use config.cache_classes ↵Joshua Peek2008-07-151-0/+1
| | | | instead
* Give more info on missing gems and abort instead of printing a warning. App ↵Jeremy Kemper2008-07-151-5/+10
| | | | can begin in incomplete state otherwise.
* Refactor template preloading. New abstractions include Renderable mixins and ↵Joshua Peek2008-07-121-1/+1
| | | | a refactored Template class.
* Added Rails.initialized? flagJoshua Peek2008-07-021-23/+32
|
* Add the gem load paths before the framework is loaded, so certain gems like ↵rick2008-06-081-4/+4
| | | | RedCloth and BlueCloth can be frozen. [#320 state:resolved]
* Renamed StringQuestioneer to StringInquirer.Joshua Peek2008-06-041-1/+1
|
* Namespaced StringQuestioneer under ActiveSupport.Joshua Peek2008-06-041-1/+1
|
* Dependencies move to ActiveSupport::Dependencies missed a few spotsDavid Heinemeier Hansson2008-06-031-7/+7
|
* Wrapped Rails.env in StringQuestioneer so you can do Rails.env.development? ↵David Heinemeier Hansson2008-06-031-1/+1
| | | | [DHH]
* Fixed initializer tests by stubbing out gems dependencies check.Joshua Peek2008-06-021-4/+7
|
* Added Rack middleware to handle static files.Joshua Peek2008-06-011-0/+1
|
* Consolidate error messages for missing gems, and skip them when running rake ↵rick2008-05-311-12/+31
| | | | gems:* tasks. [rick]
* Merge docrails.Pratik Naik2008-05-251-23/+23
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add Rails.version. [#236 state:resolved]Ryan Bates2008-05-221-0/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrails:Pratik Naik2008-05-091-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0 Author: Xavier Noria <fxn@hashref.com> Date: Thu May 8 23:49:36 2008 +0200 Overall documentation improvement and markup corrections. Zillion changes. commit 2fead68b3192332eee27945ed95a94a64ca73f70 Author: Austin Putman <austin@emmanuel.local> Date: Wed May 7 19:35:46 2008 -0700 Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing. commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1 Author: Teflon Ted <github@rudiment.net> Date: Wed May 7 16:08:49 2008 -0400 Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications. commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 14:00:59 2008 +0200 Applied list conventions in AR::Base commit 5bd18429f09d44e75191bec42a6db04bd33f3030 Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 13:53:35 2008 +0200 Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base commit d912bd5672316454457ae83f6e9dda5197beeb6f Author: Yaroslav Markin <yaroslav@markin.net> Date: Wed May 7 13:50:28 2008 +0400 Add a filter_parameter_logging usage hint to generated ApplicationController. This may help to remind the developer to filter sensitive information from application logs. Closes #11578 commit b243de0db3c2605121e055079854af5090d06374 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:39:47 2008 -0700 doc: disambiguating an example ActiveRecord class commit f81d771f0657ae8375b84a77a059812cce5d6fd9 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:35:05 2008 -0700 doc: ActiveRecord::Reflection::AssociationReflection#through_reflection Added documentation demonstrating the use of #through_reflection for finding intervening reflection objects for HasManyThrough and HasOneThrough. commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:47:41 2008 +0800 Document AttributeAssignmentError and MultiparameterAssignmentErrors. commit 8f463550b597db2156b67733f31aed13487fbc3a Author: John Barnette <jbarnette@gmail.com> Date: Tue May 6 22:46:44 2008 -0700 Killing/fixing a bunch of outdated language in the AR README. commit aca44bcd92ef783abdf484b58abdde6786db0f89 Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:34:52 2008 +0800 Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout. commit 284a930a93fbee16e25d06392779dbf2f03e9e12 Author: Jonathan Dance <jd@wuputah.com> Date: Tue May 6 14:58:26 2008 -0400 improvements to the page caching docs commit 9482da621390c874da7c921c8bd6230caae7035a Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 18:13:40 2008 +0200 validates_numericality_of() "integer" option really is "only_integer" commit e9afd6790a8f530528f6597a7f59bb283be754f6 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:11:59 2008 +0200 Harmonized hash notation in AR::Base commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:06:19 2008 +0200 Turned options into rdoc-lists in AR::Base commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297 Author: Marshall Huss <mwhuss@Macbook.local> Date: Sun May 4 23:21:33 2008 -0400 Added information of how to set element_name in the case the user has a name confliction with an existing model Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Made the location of the routes file configurable with ↵David Heinemeier Hansson2008-05-011-0/+10
| | | | config.routes_configuration_file (Scott Fleckenstein) [#88 state:resolved]
* Prevent AssetTagHelper from crashing if RAILS_ROOT is not defined. Fixes ↵Hongli Lai (Phusion2008-05-011-2/+6
| | | | | | compatibility with Passenger. [#84 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* run prepare callbacks after after_initialize blocks so config.to_prepare ↵Jeremy Kemper2008-04-281-3/+3
| | | | actually works
* Be friendlier when upgrading apps with an old boot.rb.John Barnette2008-04-281-0/+4
| | | | | | | If Rails doesn't respond to vendor_rails?, abort with an error asking the user to run 'rake rails:update'. Signed-Off-By: Michael Koziarski <michael@koziarski.com>
* Refactor Dispatcher callbacks to remove unnecessary Dependencies checks in ↵Pratik Naik2008-04-181-0/+9
| | | | production environment.
* Added Rails.public_path to control where HTML and assets are expected to be ↵David Heinemeier Hansson2008-04-131-0/+8
| | | | loaded from (defaults to Rails.root + "/public") #11581 [nicksieger]
* Don't require rails/gem_builder during rails initialization, it's only ↵Rick Olson2008-04-081-1/+0
| | | | | | needed for the gems:build task. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Flesh out rake gems:unpack to unpack all gems, and add rake gems:build for ↵Rick Olson2008-04-021-0/+1
| | | | | | native extensions. Closes #11513 [ddollar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that config.to_prepare dependency error. Closes #10520 [akaspick, Pratik]Pratik Naik2008-04-021-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* spell checkRick Olson2008-04-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de