From 4b921a5bdf952061bca1d1eb9a0b05c4160cae5a Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 26 Mar 2009 19:10:13 -0700 Subject: Hack in env variable setting for Dependencies.mechanism --- activesupport/lib/active_support/dependencies.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') 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, -- cgit v1.2.3