Skip to content

Commit

Permalink
Don't remove method_missing from Sequel::BasicObject on ruby 1.8
Browse files Browse the repository at this point in the history
Rubinius seems to require this method, otherwise it gives
StackErrors in some cases.
  • Loading branch information
jeremyevans committed Nov 22, 2010
1 parent 94450d7 commit 107c234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Sequel
class BasicObject
# The instance methods to not remove from the class when removing
# other methods.
KEEP_METHODS = %w"__id__ __send__ __metaclass__ instance_eval == equal? initialize"
KEEP_METHODS = %w"__id__ __send__ __metaclass__ instance_eval == equal? initialize method_missing"

# Remove all but the most basic instance methods from the class. A separate
# method so that it can be called again if necessary if you load libraries
Expand Down

0 comments on commit 107c234

Please sign in to comment.