Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hack in env variable setting for Dependencies.mechanism

  • Loading branch information...
commit 4b921a5bdf952061bca1d1eb9a0b05c4160cae5a 1 parent f3f5f40
@jeremy jeremy authored
View
2  activesupport/lib/active_support/dependencies.rb
@@ -21,7 +21,7 @@ module Dependencies #: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,
View
1  activesupport/test/abstract_unit.rb
@@ -4,6 +4,7 @@
gem 'mocha', '>= 0.9.5'
require 'mocha'
+ENV['NO_RELOAD'] = '1'
$:.unshift "#{File.dirname(__FILE__)}/../lib"
require 'active_support'
require 'active_support/test_case'
Please sign in to comment.
Something went wrong with that request. Please try again.