lib/active_support/dependencies.rb in activesupport-3.0.11 vs lib/active_support/dependencies.rb in activesupport-3.0.12.rc1
- old
+ new
@@ -230,14 +230,18 @@
exception.blame_file! file
raise
end
def load(file, *)
- load_dependency(file) { super }
+ result = false
+ load_dependency(file) { result = super }
+ result
end
def require(file, *)
- load_dependency(file) { super }
+ result = false
+ load_dependency(file) { result = super }
+ result
end
# Mark the given constant as unloadable. Unloadable constants are removed each
# time dependencies are cleared.
#