Skip to content

Commit

Permalink
require needs to return true or false. thank you Ryan "zenspider" Davis
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 24, 2011
1 parent d7dc94a commit b359628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion activesupport/lib/active_support/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,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
Expand Down

0 comments on commit b359628

Please sign in to comment.