aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove String#constantize depsJeremy Kemper2010-06-111-1/+1
|
* Clear const references all at onceJeremy Kemper2010-06-051-6/+9
|
* ActiveSupport::Dependencies.constantize shortcut for caching named constant ↵Jeremy Kemper2010-06-051-3/+9
| | | | lookups
* Optimize LookupContextwycats2010-06-041-0/+23
|
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Escape the file name (who knows when a "(" might appear in a filename!)Yehuda Katz2010-02-271-1/+1
|
* Remove the noisy lines involving AS::Dependencies from the NameError stack ↵Yehuda Katz2010-02-271-0/+3
| | | | trace if a constant cannot be found.
* warning: instance variable @_const_missing not initialized fixedSantiago Pastorino2010-02-191-1/+1
|
* Fix a problem where nil was appearing in the listYehuda Katz2010-02-191-4/+6
|
* Git failYehuda Katz2010-02-181-1/+0
|
* Don't constantize possible module names when looking for new constants ↵Yehuda Katz2010-02-181-0/+1
| | | | unless they exist
* Right.Yehuda Katz2010-02-141-1/+4
|
* require Strings, not SymbolsYehuda Katz2010-02-141-0/+1
|
* Save off Module's const_missing, not Class'Yehuda Katz2010-02-141-1/+1
|
* Missing requireYehuda Katz2010-02-141-0/+1
|
* name.blank? -> anonymous? in a few placesXavier Noria2010-02-141-1/+1
| | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* Simplify dependencies.rb some. Remove alias of Kernel::Foo to Object::Foo as ↵Yehuda Katz2010-02-141-190/+135
| | | | it was not used and breaks Ruby semantics.
* Stop overriding LoadError.new to return a MissingSourceError (and sometimes ↵Yehuda Katz2010-01-191-1/+1
| | | | nil!)
* Ruby 1.9.2: work around changes to flatten and nil.to_strJeremy Kemper2009-11-081-1/+1
|
* Simplify helper use of ActiveSupport::Dependencies, and use super better for ↵Yehuda Katz + Carl Lerche2009-06-101-5/+10
| | | | in #helpers
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-221-3/+5
|
* Opt in to DependenciesJeremy Kemper2009-04-221-0/+1
|
* Explicit dependency on Module extensionsJeremy Kemper2009-03-281-0/+3
|
* Hack in env variable setting for Dependencies.mechanismJeremy Kemper2009-03-261-1/+1
|
* Narrow dependenciesJeremy Kemper2009-03-261-1/+1
|
* Explicit NameError dependencyJeremy Kemper2009-03-261-0/+1
|
* Explicit dependency on Inflector and Object#blank?Jeremy Kemper2009-03-241-4/+6
|
* Explicitly require setJeremy Kemper2009-03-211-0/+2
|
* Ensure constant_watch_stack is protected by a mutex, so concurrent requires ↵Charles Nutter2009-01-301-5/+14
| | | | | | | | do not corrupt it. [#1816 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Properly parenthasize calls to defined?(Rails) in 75fa82418 [#1563 ↵Frederick Cheung2008-12-151-1/+1
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Prefer Rails.logger over RAILS_DEFAULT_LOGGERJoshua Peek2008-12-101-3/+3
|
* alternative resolution to vendor load problemMatt Jones2008-11-201-21/+22
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* add vendor/ back to load paths; catch errors in constant loadingMatt Jones2008-11-181-15/+19
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* BACKWARDS INCOMPATIBLE: Renamed application.rb to application_controller.rb ↵David Heinemeier Hansson2008-11-171-5/+1
| | | | and removed all the special casing that was in place to support the former. You must do this rename in your own application when you upgrade to this version [DHH]
* Only track new constant definitions when we're reloading dependenciesJeremy Kemper2008-11-101-2/+10
|
* Consistently use the framework's configured logger and avoid reverting to ↵Joshua Peek2008-08-181-3/+7
| | | | RAILS_DEFAULT_LOGGER unless necessary.
* Added config.dependency_loading to enable or disable the dependency loader ↵Joshua Peek2008-07-241-19/+59
| | | | after initialization
* Refactor ActiveSupport::Dependencies injector so it would be possible to ↵Joshua Peek2008-07-191-104/+114
| | | | disable it
* Remove some Symbol#to_proc usage in runtime code. [#484 state:resolved]Cheah Chu Yeow2008-07-091-2/+2
|
* Fix typo in apparently-dead will_unload? method.Jeremy Kemper2008-06-271-1/+1
|
* Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵Joshua Peek2008-06-031-392/+393
| | | | ActiveSupport [#238 state:resolved]
* Fixed Dependencies so load errors are not masked behind a 'Expected x.rb to ↵Tom Ward2008-05-311-9/+10
| | | | | | define X' message when mechanism is not set to :load [#87 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix Dependencies watch_frames collection. [#24 state:resolved]Tom Ward2008-05-201-1/+1
| | | | | | | | | | Previously, the code collecting watch_frames could fail leaving watch_frames defined but nil. The cleanup code checks watch_frames is defined, but not that it holds a value, raising an undefined method on NilClass error rather than the original cause. This can make debugging the underlying cause a total pain. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: compatibility wrapper for new Module#const_defined? behaviorJeremy Kemper2008-05-011-5/+16
|
* Cheaper Dependencies#log_call to resolve irritating error message w/ rake ↵David Heinemeier Hansson2008-04-301-4/+6
| | | | db:create (Sven) [#56 state:resolved]
* Don't need to explicitly pass the same params to super. Remove trailing ↵Jeremy Kemper2008-03-301-62/+60
| | | | | | whitespace. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: dependencies uses Module#local_constant_names. References ↵Jeremy Kemper2007-12-221-3/+3
| | | | | | #1689 [Frederick Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert const_missing bypass in favor of Duration constant lookup tweakJeremy Kemper2007-12-151-5/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bypass const_missing lookup for toplevel constants. Optimizes for Ruby 1.9 ↵Jeremy Kemper2007-12-151-7/+12
| | | | | | const_defined. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de