Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

require needs to return true or false. thank you Ryan "zenspider" Davis

  • Loading branch information...
commit 8fabf78708c09066c232fd1c941c4604bc04bb56 1 parent 289ae94
@tenderlove tenderlove authored sumbach committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 activesupport/lib/active_support/dependencies.rb
View
4 activesupport/lib/active_support/dependencies.rb
@@ -236,7 +236,9 @@ def load(file, *)
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
Please sign in to comment.
Something went wrong with that request. Please try again.