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-b9f4589650daunstable
parent
b38a74c961
commit
9904861e94
|
@ -151,16 +151,7 @@ module ActiveSupport #:nodoc:
|
|||
raise
|
||||
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
|
||||
# time dependencies are cleared.
|
||||
|
|
Loading…
Reference in New Issue