Prevent rails from overloading require, another big speed boost from Yoann, and it looks like we can avoid it

git-svn-id: file:///home/svn/framework3/trunk@7247 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-10-25 17:07:48 +00:00
parent b38a74c961
commit 9904861e94
1 changed files with 1 additions and 10 deletions

View File

@ -151,16 +151,7 @@ module ActiveSupport #:nodoc:
raise raise
end end
def require(file, *extras) #:nodoc:
if Dependencies.load?
Dependencies.new_constants_in(Object) { super }
else
super
end
rescue Exception => exception # errors from required file
exception.blame_file! file
raise
end
# Mark the given constant as unloadable. Unloadable constants are removed each # Mark the given constant as unloadable. Unloadable constants are removed each
# time dependencies are cleared. # time dependencies are cleared.