Browse files

`load` should also return the value from `super`

  • Loading branch information...
1 parent 8fabf78 commit cc3fb2e1c51f16d2a67d56ea5b2dee95b309bc2a @tenderlove tenderlove committed with sumbach Aug 24, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 activesupport/lib/active_support/dependencies.rb
View
4 activesupport/lib/active_support/dependencies.rb
@@ -232,7 +232,9 @@ def load_dependency(file)
end
def load(file, *)
- load_dependency(file) { super }
+ result = false
+ load_dependency(file) { result = super }
+ result
end
def require(file, *)

0 comments on commit cc3fb2e

Please sign in to comment.