Skip to content

Commit

Permalink
ruby 1.9 compat: Object.methods is an array of symbols
Browse files Browse the repository at this point in the history
- undefining instance_eval is bad, mmkay
  • Loading branch information
yob authored and pat committed May 22, 2009
1 parent 48e8ff6 commit a6b392d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/index/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Index
#
class Builder
instance_methods.grep(/^[^_]/).each { |method|
next if method == "instance_eval"
next if method.to_s == "instance_eval"
define_method(method) {
caller.grep(/irb.completion/).empty? ? method_missing(method) : super
}
Expand Down

0 comments on commit a6b392d

Please sign in to comment.