Skip to content

Instantly share code, notes, and snippets.

@kronos
Created February 1, 2010 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kronos/291673 to your computer and use it in GitHub Desktop.
Save kronos/291673 to your computer and use it in GitHub Desktop.
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