diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-27 11:18:11 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-27 11:18:11 +0000 |
commit | 5162e31e5b8cedde6424e6c60d72dc83ff3ce423 (patch) | |
tree | 41e76ca0372994921eaad3ae278519c173948038 /actionpack/lib/action_view/helpers/prototype_helper.rb | |
parent | 41c82e66c1abb2abbf5081c1e18b6070a6bbbd01 (diff) | |
download | rails-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/prototype_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 5 |
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 |