aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-27 11:18:11 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-27 11:18:11 +0000
commit5162e31e5b8cedde6424e6c60d72dc83ff3ce423 (patch)
tree41e76ca0372994921eaad3ae278519c173948038 /actionpack/lib/action_view/helpers
parent41c82e66c1abb2abbf5081c1e18b6070a6bbbd01 (diff)
downloadrails-5162e31e5b8cedde6424e6c60d72dc83ff3ce423.tar.gz
rails-5162e31e5b8cedde6424e6c60d72dc83ff3ce423.tar.bz2
rails-5162e31e5b8cedde6424e6c60d72dc83ff3ce423.zip
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
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb5
1 files changed, 5 insertions, 0 deletions
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