Permalink
Browse files

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

  • Loading branch information...
tenderlove committed Aug 24, 2011
1 parent 7c5cd40 commit 36d06d107718943eefea38515fb6370e76706882
Showing with 3 additions and 1 deletion.
  1. +3 −1 activesupport/lib/active_support/dependencies.rb
@@ -230,7 +230,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 36d06d1

Please sign in to comment.