aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-03-26 19:10:13 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-03-26 19:10:13 -0700
commit4b921a5bdf952061bca1d1eb9a0b05c4160cae5a (patch)
tree3665e07b9c338a10addb8fc713a31bf0673da677 /activesupport/lib/active_support
parentf3f5f40e446b75ab5080b11263e9875fddc756b0 (diff)
downloadrails-4b921a5bdf952061bca1d1eb9a0b05c4160cae5a.tar.gz
rails-4b921a5bdf952061bca1d1eb9a0b05c4160cae5a.tar.bz2
rails-4b921a5bdf952061bca1d1eb9a0b05c4160cae5a.zip
Hack in env variable setting for Dependencies.mechanism
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 61823fdeb2..ba515aaeec 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -21,7 +21,7 @@ module ActiveSupport #:nodoc:
# Should we load files or require them?
mattr_accessor :mechanism
- self.mechanism = :load
+ self.mechanism = ENV['NO_RELOAD'] ? :require : :load
# The set of directories from which we may automatically load files. Files
# under these directories will be reloaded on each request in development mode,