aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-08-23 16:55:11 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-08-23 16:55:43 -0700
commita10606c490471d8e1483acb3b31d7f2d51e9ebbe (patch)
tree241b9967bac07e65eafdca4998f006c3feee91ea /activesupport/lib/active_support
parent4cc934993e110683e3b3a2f910971f2279ed89bc (diff)
downloadrails-a10606c490471d8e1483acb3b31d7f2d51e9ebbe.tar.gz
rails-a10606c490471d8e1483acb3b31d7f2d51e9ebbe.tar.bz2
rails-a10606c490471d8e1483acb3b31d7f2d51e9ebbe.zip
require needs to return true or false. thank you Ryan "zenspider" Davis
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/dependencies.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 3f6c93e860..cc6e811224 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -233,7 +233,9 @@ module ActiveSupport #:nodoc:
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