Skip to content

Commit

Permalink
load should also return the value from super
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 24, 2011
1 parent b359628 commit 93a9cad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion activesupport/lib/active_support/dependencies.rb
Expand Up @@ -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, *)
Expand Down

0 comments on commit 93a9cad

Please sign in to comment.