From 29004de1a2ded5e8705d421ffe60ff6f631110b1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 23 Aug 2011 17:04:05 -0700 Subject: `load` should also return the value from `super` --- activesupport/lib/active_support/dependencies.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index cc6e811224..6252e7f7c3 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -229,7 +229,9 @@ module ActiveSupport #:nodoc: end def load(file, *) - load_dependency(file) { super } + result = false + load_dependency(file) { result = super } + result end def require(file, *) -- cgit v1.2.3