Created
February 1, 2010 12:53
-
-
Save kronos/291673 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/kernel/delta/module.rb b/kernel/delta/module.rb | |
index 2885d63..cdfe234 100644 | |
--- a/kernel/delta/module.rb | |
+++ b/kernel/delta/module.rb | |
@@ -99,7 +99,7 @@ class Module | |
while mod | |
# Check for a cyclic include | |
- if mod.equal? klass | |
+ if mod.equal?(klass) or (mod.kind_of?(Rubinius::IncludedModule) and mod.module.equal?(klass)) | |
raise ArgumentError, "cyclic include detected" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment