From 5162e31e5b8cedde6424e6c60d72dc83ff3ce423 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 27 Dec 2007 11:18:11 +0000 Subject: 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 --- actionpack/lib/action_view/helpers/prototype_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 0435f5c426..f4ea25af16 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -1066,6 +1066,11 @@ module ActionView # 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 -- cgit v1.2.3