…ntize 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.
Under ruby 1.9.2 - "/var/log".starts_with?(Pathname.new("/var")) # => false so setting config.autoload_once_paths with Pathnames would not work
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
…are so that anonymous classes are supported
Signed-off-by: José Valim <email@example.com>
…moving unloadable constants Signed-off-by: José Valim <firstname.lastname@example.org>
…e_unloadable_constants! Signed-off-by: Xavier Noria <email@example.com>
…th (in more places)" Caused failures in ActionMailer test suite. This reverts commit 991cd59.
…ble to avoid double-requires
…autoloaded_constants list, causing mayhem. [#5165 state:resolved]