aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
Commit message (Collapse)AuthorAgeFilesLines
* defines Module#qualified_const_(defined?|get|set) and String#deconstantizeXavier Noria2011-10-291-6/+8
| | | | | | | | | | This commit also implements a faster version of #demodulize I was unable to isolate with git add --patch. Not a big fan of the name #deconstantize. It complements #demodulize getting rid of the rightmost constant, hence the name, but it is unrelated to the well-known #constantize. So unsure. Could not come with anything better, please feel free to rename.
* Fix autoload_once_paths when using Pathnames & ruby 1.9Jonathan del Strother2011-08-241-1/+2
| | | | | | | Under ruby 1.9.2 - "/var/log".starts_with?(Pathname.new("/var")) # => false so setting config.autoload_once_paths with Pathnames would not work
* `load` should also return the value from `super`Aaron Patterson2011-08-231-1/+3
|
* require needs to return true or false. thank you Ryan "zenspider" DavisAaron Patterson2011-08-231-1/+3
|
* delay backtrace scrubbing until we actually raise an exception. fixes #1936Aaron Patterson2011-07-291-7/+4
|
* Replace unnecessary regexp in Dependencies#load_missing_constantJonathan del Strother2011-07-271-2/+1
|
* Constantize a regexp in Dependencies#load_missing_constantJonathan del Strother2011-07-261-1/+2
|
* Remove obsolete compatibility moduleAndrew White2011-06-131-11/+0
|
* Raise NameError instead of ArgumentError in ActiveSupport::DependenciesAndrew White2011-06-011-1/+1
| | | | | | | | ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. Closes #1423
* Removed deprecated methods and related tests from ActiveSupportJosh Kalderimis2011-05-251-23/+0
|
* Remove extra white spaces on ActiveSupport docs.Sebastian Martinez2011-05-231-1/+1
|
* Active Support typos.R.T. Lechow2011-03-051-1/+1
|
* require deprecation so that we can deprecate methods!Aaron Patterson2011-03-021-0/+1
|
* anonymous classes have blank names on ruby 1.8Aaron Patterson2011-03-021-1/+1
|
* adding deprecation noticies to deprecated class cache methodsAaron Patterson2011-03-021-0/+13
|
* adding backwards compat for class cache references. <3<3Aaron Patterson2011-03-021-1/+12
|
* yo dawg, directly use the class cache rather than the cache of the cacheAaron Patterson2011-03-011-5/+2
|
* refactor Reference to a ClassCache object, fix lazy lookup in Middleware so ↵Aaron Patterson2011-03-011-11/+32
| | | | that anonymous classes are supported
* Remove extra fRyan Bigg2010-12-031-1/+1
|
* replace if ! with unlessNeeraj Singh2010-10-171-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Reference watch_namespaces in comments instead of watch_modulesMarcelo Giorgi2010-09-131-3/+3
|
* Refactor a bit dependencies loggingCarlos Antonio da Silva2010-09-051-4/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Improve dependencies by not calling constantize(const) twice while removing ↵Carlos Antonio da Silva2010-09-051-3/+4
| | | | | | unloadable constants Signed-off-by: José Valim <jose.valim@gmail.com>
* Add before_remove_const callback to ↵Andrew White2010-09-011-1/+7
| | | | | | ActiveSupport::Dependencies.remove_unloadable_constants! Signed-off-by: Xavier Noria <fxn@hashref.com>
* 1.8 block variable shadowing strikes againwycats2010-08-171-2/+2
|
* Sadly, this segv's in 1.8 :(wycats2010-08-171-38/+56
|
* Revert "require_dependency should require using the normal mechanism if ↵José Valim2010-08-101-15/+7
| | | | | | | possible to avoid double-requires" This was causing double requires since 991cd59a225b90ab1ba3 was reverted. This reverts commit 8bf79739b4219eb1d6464e6eb4853e92e81d7621.
* Revert "If a file is in the load path, require it without its full path (in ↵José Valim2010-08-041-7/+2
| | | | | | | | more places)" Caused failures in ActionMailer test suite. This reverts commit 991cd59a225b90ab1ba31867810b8fc0942713eb.
* If a file is in the load path, require it without its full path (in more places)wycats2010-08-041-2/+7
|
* require_dependency should require using the normal mechanism if possible to ↵wycats2010-08-041-7/+15
| | | | avoid double-requires
* Fix a bug where requires inside of autoloads were being added to the ↵wycats2010-07-261-5/+12
| | | | autoloaded_constants list, causing mayhem. [#5165 state:resolved]
* Removes unused varsSantiago Pastorino2010-07-241-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Avoid using Pathname on Resolver and AS::Dependencies.José Valim2010-06-241-6/+15
|
* renames load_(once_)paths to autoload_(once_)paths in dependencies and configXavier Noria2010-06-241-12/+12
|
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-151-1/+1
|\
| * Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-1/+1
| |
* | 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
|