aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove ::Controllers related cruft; fix AP testsNicholas Seckar2006-02-261-4/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove LoadingModuleNicholas Seckar2006-02-031-130/+0
| | | | 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/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3524 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Further improvements to reloading codeNicholas Seckar2006-02-021-8/+0
| | | | 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-13/+52
| | | | | | 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
* Handle mutual dependencies with .rb suffix.Jeremy Kemper2005-11-281-15/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce Dependencies.warnings_on_first_load setting. If true, enables ↵Jeremy Kemper2005-11-241-2/+7
| | | | | | warnings on first load of a require_dependency. Otherwise, loads without warnings. Disabled (set to false) by default. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Sever infinite loop for mutual dependencies. Closes #2997.Jeremy Kemper2005-11-241-7/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dependencies: set load_file_name = file_name if it ends in .rbJeremy Kemper2005-11-231-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enable warnings on first load only. File which are loaded but raise an ↵Jeremy Kemper2005-11-231-10/+26
| | | | | | exception are not added to loaded set. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3240@asus: jeremy | 2005-11-20 23:22:34 -0800Jeremy Kemper2005-11-211-6/+2
| | | | | | | Introduce enable_warnings counterpart to silence_warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Turn warnings on when loading a file if Dependencies.mechanism == :load. ↵Jeremy Kemper2005-11-211-3/+12
| | | | | | Common mistakes such as redefined methods will print warnings to stderr. References #752. References #1792. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix const_missing handler to ignore the trailing '.rb' on files when ↵Nicholas Seckar2005-11-101-1/+1
| | | | | | comparing paths. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix broken tests caused by incomplete loading of active support.Nicholas Seckar2005-11-071-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* When loading classes using const_missing, raise a NameError if and only if ↵Nicholas Seckar2005-10-271-8/+8
| | | | | | the file we tried to load was not present. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Chain the const_missing hook to any previously existing hook so rails can ↵Jamis Buck2005-10-031-1/+8
| | | | | | play nicely with rake git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed dependencies related infinite recursion bug when a controller file ↵Nicholas Seckar2005-09-121-1/+7
| | | | | | does not contain a controller class. Closes #1760. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added more efficient implementation of the development mode reset of classes ↵David Heinemeier Hansson2005-07-071-1/+1
| | | | | | #1638 [Chris McGrath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation for release (AS)David Heinemeier Hansson2005-07-061-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance of Routes generation by a factor of 5 #1434 [Nicholas ↵David Heinemeier Hansson2005-06-241-22/+24
| | | | | | Seckar] Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Dependencies so all modules are able to load missing constants #1173 ↵David Heinemeier Hansson2005-05-191-15/+15
| | | | | | [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that in some circumstances controllers outside of modules may have ↵David Heinemeier Hansson2005-04-101-6/+8
| | | | | | hidden ones inside modules. For example, admin/content might have been hidden by /content. #1075 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed problem with classes being required twice. Object#const_missing now ↵David Heinemeier Hansson2005-04-021-1/+1
| | | | | | uses require_dependency to load files. It used to use require_or_load which would cause models to be loaded twice, which was not good for validations and other class methods #971 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved error reporting especially around never shallowing exceptions. ↵David Heinemeier Hansson2005-03-231-4/+7
| | | | | | Debugging helpers should be much easier now #980 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar]David Heinemeier Hansson2005-03-011-8/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Blame controller files #684David Heinemeier Hansson2005-02-201-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated dependency loading to consider non-standard class/file name combinationsDavid Heinemeier Hansson2005-02-201-4/+21
| | | | 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-39/+69
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Gives Rescues some Love #680David Heinemeier Hansson2005-02-201-2/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@709 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved Active Support into its own gemDavid Heinemeier Hansson2005-02-151-0/+128
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de