Created
March 21, 2010 23:49
-
-
Save kronos/339663 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
From 3869db5ed39a82048131b381993860d4357941b4 Mon Sep 17 00:00:00 2001 | |
From: Ivan Samsonov <[email protected]> | |
Date: Mon, 22 Mar 2010 08:32:54 +0300 | |
Subject: [PATCH] Doesn't undef method __metaclass__ because we need it on rubinius | |
--- | |
lib/sequel/sql.rb | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/lib/sequel/sql.rb b/lib/sequel/sql.rb | |
index e07522d..c2a0299 100644 | |
--- a/lib/sequel/sql.rb | |
+++ b/lib/sequel/sql.rb | |
@@ -4,7 +4,7 @@ module Sequel | |
# the Ruby 1.9 BasicObject class. This is used in a few places where proxy | |
# objects are needed that respond to any method call. | |
class BasicObject | |
- (instance_methods - %w"__id__ __send__ instance_eval == equal?").each{|m| undef_method(m)} | |
+ (instance_methods - %w"__id__ __send__ __metaclass__ instance_eval == equal?").each{|m| undef_method(m)} | |
end | |
else | |
# If on 1.9, create a Sequel::BasicObject class that is just like the | |
-- | |
1.6.6.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment