From b359628f18cd0830654e239ee56845c29be13989 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 23 Aug 2011 16:55:11 -0700 Subject: [PATCH] require needs to return true or false. thank you Ryan "zenspider" Davis --- activesupport/lib/active_support/dependencies.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 70dfb6c61a..5daa63b6ff 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -234,7 +234,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