Permalink
Browse files

Ruby 1.9 compat: javascript proxy. References #1689 [Frederick Cheung]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 41c82e6 commit 5162e31e5b8cedde6424e6c60d72dc83ff3ce423 @jeremy jeremy committed Dec 27, 2007
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -1066,6 +1066,11 @@ def build_callbacks(options)
# Converts chained method calls on DOM proxy elements into JavaScript chains
class JavaScriptProxy < BasicObject #:nodoc:
+ if ::RUBY_VERSION >= '1.9'
+ undef_method :==
+ undef_method :equal?
+ end
+
def initialize(generator, root = nil)
@generator = generator
@generator << root if root

0 comments on commit 5162e31

Please sign in to comment.